Koa
为 Koa 添加性能仪器化。 (默认)
有关设置 Sentry Koa 支持的更多信息,请参阅 Koa Sentry 文档。
此集成仅在 Node.js 和 Bun 运行时中工作。
Import name: Sentry.koaIntegration
此集成在启用性能监控时默认启用。如果你希望修改默认集成,请阅读 此内容。
koaIntegration
为 Koa 框架添加仪器化,使用 @opentelemetry/instrumentation-koa
捕获跨度。
Copied
Sentry.init({
integrations: [new Sentry.koaIntegration()],
});
koa
:^2.0.0
@koa/router
:>=8