Skip to content

Dataloader | Sentry for Next.js

Source URL: https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/dataloader

This integration only works in the Node.js and Bun runtimes. Requires SDK version 8.31.0 or higher.

Import name: Sentry.dataloaderIntegration

The dataloaderIntegration adds instrumentation for the dataloader library to capture spans using @opentelemetry/instrumentation-dataloader.

Sentry.init({
integrations: [Sentry.dataloaderIntegration()],
});
  • dataloader: >=2.0.0 <3