Postgres
为 Postgres 添加插装。(默认启用)
此集成仅在 Node.js 和 Bun 运行时中工作。
Import name: Sentry.postgresIntegration
当启用了性能监控时,此集成默认启用。如果您想修改默认集成,请阅读此文档。
postgresIntegration
为 pg
库添加了插装,以使用 @opentelemetry/instrumentation-pg
捕获跨度。
Copied
Sentry.init({
integrations: [Sentry.postgresIntegration()],
});
pg
:>=8 <9