0.1.0 • Published 12 months ago

@hyperdx/instrumentation-sentry-node v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
12 months ago

OpenTelemetry Sentry Instrumentation for Node.js

NPM Published Version Apache License

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

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.