Postgres

为 Postgres 添加插装。(默认启用)

Import name: Sentry.postgresIntegration

当启用了性能监控时,此集成默认启用。如果您想修改默认集成,请阅读此文档

postgresIntegrationpg 库添加了插装,以使用 @opentelemetry/instrumentation-pg 捕获跨度。

Copied
Sentry.init({
  integrations: [Sentry.postgresIntegration()],
});

  • pg: >=8 <9