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