0.2.0 • Published 5 years ago
opentelemetry-plugin-kafkajs v0.2.0
OpenTelemetry kafkajs Instrumentation for Node.js
This module provides automatic instrumentation for kafkajs.
Installation
npm install --save opentelemetry-plugin-kafkajsUsage
To load a specific plugin (kafkajs in this case), specify it in the Node Tracer's configuration
const { NodeTracerProvider } = require("@opentelemetry/node");
const provider = new NodeTracerProvider({
  plugins: {
    kafkajs: {
      enabled: true,
      // You may use a package name or absolute path to the file.
      path: "opentelemetry-plugin-kafkajs",
    },
  },
});kafkajs Plugin Options
kafkajs plugin has few options available to choose from. You can set the following:
| Options | Type | Description | 
|---|---|---|
| producerHook | KafkaProducerCustomAttributeFunction | Hook called before producer message is sent, which allow to add custom attributes to span. | 
| consumerHook | KafkaConsumerCustomAttributeFunction | Hook called before consumer message is processed, which allow to add custom attributes to span. | 
This extension (and many others) was developed by Aspecto with ❤️
0.2.0
5 years ago
0.2.0-dev.0
5 years ago
0.1.2
5 years ago
0.1.2-alpha.1
5 years ago
0.1.2-alpha.0
5 years ago
0.1.1
5 years ago
0.1.0
5 years ago
0.1.0-alpha.0
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago