Node.js Kengine OpenTelemetry SDK
Instrument your Node.js applications with OpenTelemetry and send the traces to Kengine.
Getting Started
Check out the documentation.
Example
import { KengineSDK } from '@khulnasoft/node-opentelemetry';
import { getNodeAutoInstrumentations } from '@opentelemetry/auto-instrumentations-node';
const sdk = new KengineSDK({
instrumentations: [
getNodeAutoInstrumentations(),
],
});
sdk.start();
Configuration
The KengineSDK class takes the following configuration options
Field | Type | Description |
---|---|---|
instrumentations | InstrumentationOption[] | An array of instrumentation options. |
kengineKey | string (optional) | The Kengine key. |
collectorUrl | string (optional) | The URL of the collector. |
service | string (optional) | The service name. |
namespace | string (optional) | The namespace. |
License
© Kengine Limited, 2023
Distributed under MIT License (The MIT License
).
See LICENSE for more information.