Socket
Book a DemoInstallSign in
Socket

@mzahor-test-org/open-telemetry-kafka-node

Package Overview
Dependencies
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mzahor-test-org/open-telemetry-kafka-node

open telemetry instrumentation for the `kafka-node` kafka client

0.0.37
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
3
Weekly downloads
 
Created
Source

OpenTelemetry kafka-node Instrumentation for Node.js

This module provides automatic instrumentation for kafka-node.

Installation

npm install --save @mzahor-test-org/open-telemetry-kafka-node

Usage

To load a specific plugin (kafka-node in this case), specify it in the Node Tracer's configuration

const { NodeTracerProvider } = require('@opentelemetry/node');

const provider = new NodeTracerProvider({
  plugins: {
    'kafka-node': {
      enabled: true,
      // You may use a package name or absolute path to the file.
      path: '@mzahor-test-org/open-telemetry-kafka-node',
    }
  }
});

kafka-node Plugin Options

kafka-node plugin has few options available to choose from. You can set the following:

OptionsTypeDescription
producerHookKafkaProducerCustomAttributeFunctionHook called before producer message is sent, which allow to add custom attributes to span.
consumerHookKafkaConsumerCustomAttributeFunctionHook called before consumer message is processed, which allow to add custom attributes to span.

Known Issues

  • This library instrument only the Producer and Consumer.
  • Due to the lack of support in kafka-node in message headers, there is currently no context propagation between producers and consumers.

FAQs

Package last updated on 23 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.