Skip to content

Add dataloaderIntegration to Node #13313

Closed
@mydea

Description

@mydea

Description

We want to instrument dataloader. There is an existing OTEL instrumentation for this:

https://www.npmjs.com/package/@opentelemetry/instrumentation-dataloader

### Tasks
- [ ] Add new `dataloaderIntegration` in `@sentry/node`
- [ ] This should set up the OTEL instrumentation
- [ ] Make sure to add an `origin` to all spans the integration emits
- [ ] Add node-integration-tests for the package
- [ ] The integration should be added by default

This is a cache integration, and thus must follow https://develop.sentry.dev/sdk/telemetry/traces/modules/caches/. You can see https://docs.sentry.io/platforms/javascript/guides/node/tracing/instrumentation/custom-instrumentation/caches-module/ for a reference, or look at the redis integration.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions