@myrotvorets/opentelemetry-plugin-knex
TypeScript icon, indicating that this package has built-in type declarations

0.32.0 • Public • Published

opentelemetry-plugin-knex

Quality Gate Status Build and Test

OpenTelemetry knex automatic instrumentation package

Usage

import { NodeSDK } from '@opentelemetry/sdk-node';
import { KnexInstrumentation } from '@myrotvorets/opentelemetry-plugin-knex';
import { HttpInstrumentation } from '@opentelemetry/instrumentation-http';

const sdk = new NodeSDK({
    serviceName: 'example',
    instrumentations: [new HttpInstrumentation(), new KnexInstrumentation()],
});

sdk.start();

See the example directory for a working example.

Package Sidebar

Install

npm i @myrotvorets/opentelemetry-plugin-knex

Weekly Downloads

50

Version

0.32.0

License

MIT

Unpacked Size

11.7 kB

Total Files

9

Last publish

Collaborators

  • unsung-hero