Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.64 KB

README.md

File metadata and controls

51 lines (35 loc) · 1.64 KB

OpenTelemetry Sentry Instrumentation for Node.js

NPM Published Version Apache License

This module provides automatic instrumentation for the @sentry/node module.

Compatible with OpenTelemetry JS API and SDK 1.0+.

Installation

npm install --save @hyperdx/instrumentation-sentry-node

Supported Versions

  • >=7.30.0 <9

Usage

const {
  SentryNodeInstrumentation,
} = require('@hyperdx/instrumentation-sentry-node');
const { NodeTracerProvider } = require('@opentelemetry/sdk-trace-node');
const { registerInstrumentations } = require('@opentelemetry/instrumentation');

const provider = new NodeTracerProvider();
provider.register();

registerInstrumentations({
  instrumentations: [new SentryNodeInstrumentation()],
});

Useful links

License

Apache 2.0 - See LICENSE for more information.