添加Session Replay配置

This commit is contained in:
fanbook-wangdage
2026-03-09 19:39:33 +08:00
parent b86a765bb1
commit c97cd7cd5d

View File

@@ -25,6 +25,9 @@ Sentry.init({
integrations: [Sentry.browserTracingIntegration()],
tracesSampleRate: 0.2,
tracePropagationTargets: ["localhost", "https://htserver.wdg.cloudns.ch/"],
// Session Replay
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1.0 // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
});
app.use(pinia)