添加router参数

This commit is contained in:
fanbook-wangdage
2026-03-09 19:52:12 +08:00
parent c97cd7cd5d
commit 0527c185ec

View File

@@ -22,7 +22,7 @@ Sentry.init({
// Setting this option to true will send default PII data to Sentry.
// For example, automatic IP address collection on events
sendDefaultPii: true,
integrations: [Sentry.browserTracingIntegration()],
integrations: [Sentry.browserTracingIntegration({ router })],
tracesSampleRate: 0.2,
tracePropagationTargets: ["localhost", "https://htserver.wdg.cloudns.ch/"],
// Session Replay