mirror of
https://github.com/wangdage12/Snap.Server.Web.git
synced 2026-03-28 01:02:21 +08:00
添加Session Replay配置
This commit is contained in:
@@ -25,6 +25,9 @@ Sentry.init({
|
|||||||
integrations: [Sentry.browserTracingIntegration()],
|
integrations: [Sentry.browserTracingIntegration()],
|
||||||
tracesSampleRate: 0.2,
|
tracesSampleRate: 0.2,
|
||||||
tracePropagationTargets: ["localhost", "https://htserver.wdg.cloudns.ch/"],
|
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)
|
app.use(pinia)
|
||||||
|
|||||||
Reference in New Issue
Block a user