[![NPM Published Version][npm-img]][npm-url] [![Apache License][license-image]][license-image]
npm install @hyperdx/instrumentation-sentry-node[![NPM Published Version][npm-img]][npm-url]
[![Apache License][license-image]][license-image]
This module provides automatic instrumentation for the @sentry/nodemodule.
Compatible with OpenTelemetry JS API and SDK 1.0+.
``bash`
npm install --save @hyperdx/instrumentation-sentry-node
- >=7.30.0 <9
`js
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()],
});
``
- For more information on OpenTelemetry, visit:
- For more about OpenTelemetry JavaScript:
- For help or feedback on this project, join us in [GitHub Discussions][discussions-url]
Apache 2.0 - See [LICENSE][license-url] for more information.
[discussions-url]: https://github.com/hyperdxio/hyperdx-js/discussions
[license-url]: https://github.com/hyperdxio/hyperdx-js/blob/main/packages/instrumentation-sentry-node/LICENSE
[license-image]: https://img.shields.io/badge/license-Apache_2.0-green.svg?style=flat
[npm-url]: https://www.npmjs.com/package/@hyperdx/instrumentation-sentry-node
[npm-img]: https://badge.fury.io/js/%40opentelemetry%2Finstrumentation-pg.svg