我向我的类星体应用程序添加了哨兵监控,但哨兵没有收到任何错误,也没有显示在其面板中
我创建了 /src/boot/sentry.js
并编写了以下代码:
import { boot } from "quasar/wrappers"; import * as Sentry from "@sentry/vue"; import { BrowserTracing } from "@sentry/tracing"; export default boot(({ app, router }) => { Sentry.init({ app, dsn: "<my sentry dns>", integrations: [ new BrowserTracing({ routingInstrumentation: Sentry.vueRouterInstrumentation(router), tracingOrigins: ["localhost", "my-site-url.com", regex], }), ], trackComponents: true, tracesSampleRate: 1.0, }); });
我的 Quasar 应用程序是 ssr。我应该如何修复它?
我通过更改代码解决了我的问题,如下所示: