0.2.12 • Published 4 months ago

@khulnasoft/node-opentelemetry v0.2.12

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Node.js Kengine OpenTelemetry SDK

Documentation Latest Release License

Instrument your Node.js applications with OpenTelemetry and send the traces to Kengine.

npm.io

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

FieldTypeDescription
instrumentationsInstrumentationOption[]An array of instrumentation options.
kengineKeystring (optional)The Kengine key.
collectorUrlstring (optional)The URL of the collector.
servicestring (optional)The service name.
namespacestring (optional)The namespace.

License

© Kengine Limited, 2023

Distributed under MIT License (The MIT License).

See LICENSE for more information.