没有“ perfomense”在Nestjs的哨兵项目中
哨兵中的“性能”选项卡中没有数据。该项目用Nestjs编写。 我这样连接哨兵
const app = await NestFactory.create(AppModule);
app.enableCors({
allowedHeaders: '*',
origin: '*',
methods: 'GET,PUT,POST,DELETE,OPTIONS',
preflightContinue: true,
});
const config = app.get<ConfigService>(ConfigService);
const dsnSentry = config.get('SENTRY_DSN');
Sentry.init({
dsn: dsnSentry,
environment: config.get('ENV'),
integrations: [
new Sentry.Integrations.Http({ tracing: true }),
],
tracesSampleRate: 1,
});
...
app.use(Sentry.Handlers.requestHandler());
app.use(Sentry.Handlers.tracingHandler());
如何在哨兵中获得性能?现在是空的
No data on the Performance tab in Sentry. The project is written in NestJS.
I connect Sentry like this
const app = await NestFactory.create(AppModule);
app.enableCors({
allowedHeaders: '*',
origin: '*',
methods: 'GET,PUT,POST,DELETE,OPTIONS',
preflightContinue: true,
});
const config = app.get<ConfigService>(ConfigService);
const dsnSentry = config.get('SENTRY_DSN');
Sentry.init({
dsn: dsnSentry,
environment: config.get('ENV'),
integrations: [
new Sentry.Integrations.Http({ tracing: true }),
],
tracesSampleRate: 1,
});
...
app.use(Sentry.Handlers.requestHandler());
app.use(Sentry.Handlers.tracingHandler());
How do I get Performance in Sentry? Right now it's empty
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如 https://github.com/getsentry/sentry-sentry-sentry-javascript/4731/4731/4731/4731/4731
如果缺少这种进口,有些人有问题:
As described in https://github.com/getsentry/sentry-javascript/issues/4731
some people had problems if this import was missing: