Skip to content

Knex | Sentry for Next.js

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

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

Import name: Sentry.knexIntegration

The knexIntegration adds instrumentation for the knex library to capture spans using @opentelemetry/instrumentation-knex.

Sentry.init({
integrations: [Sentry.knexIntegration()],
});
  • dataloader: >=0.10.0 <4