I added Sentinel monitoring to my Quasar application but Sentinel does not receive any errors nor does it show up in its panel
I created /src/boot/sentry.js
and wrote the following code:
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, }); });
My Quasar application is ssr. How should I fix it?
I solved my problem by changing the code as follows: