Postgres | Sentry for Next.js
Source URL: https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/postgres
Postgres | Sentry for Next.js
Section titled “Postgres | Sentry for Next.js”This integration only works in the Node.js and Bun runtimes.
Import name: Sentry.postgresIntegration
This integration is enabled by default when performance monitoring is enabled. If you’d like to modify your default integrations, read this.
The postgresIntegration adds instrumentation for the pg library to capture spans using @opentelemetry/instrumentation-pg.
Sentry.init({ integrations: [Sentry.postgresIntegration()],});pg:>=8 <9