Skip to content

Kafka | Sentry for Next.js

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

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

Import name: Sentry.kafkaIntegration

This integration is enabled by default when performance monitoring is enabled. If you’d like to modify your default integrations, read this.

The kafkaIntegration adds instrumentation for the kafkajs library to capture spans using @opentelemetry/instrumentation-kafkajs.

Sentry.init({
integrations: [Sentry.kafkaIntegration()],
});
  • kafkajs: >=0.1.0 <3