@hyperdx/instrumentation-sentry-node
v0.1.0
Published
[![NPM Published Version][npm-img]][npm-url] [![Apache License][license-image]][license-image]
Downloads
16,353
Readme
OpenTelemetry Sentry Instrumentation for Node.js
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
- For more information on OpenTelemetry, visit: https://opentelemetry.io/
- For more about OpenTelemetry JavaScript: https://github.com/open-telemetry/opentelemetry-js
- For help or feedback on this project, join us in GitHub Discussions
License
Apache 2.0 - See LICENSE for more information.