ui: sentry: add tags

This commit is contained in:
undefined committed 2024-07-21 10:39:26 +08:00
1 parent c71af319cd
commit c9d10a97a2
2 files changed
+8 -6

No files matched your search

+4 -2
View File
@@ -47,9 +47,11 @@ if (process.env.NODE_ENV === 'production' && !UiContext.sentry_disable) {
],
tracesSampleRate: 0.1,
tracePropagationTargets: ['localhost', /^\//, window.location.host],
replaysSessionSampleRate: 0.03,
replaysOnErrorSampleRate: 1.0,
replaysSessionSampleRate: 0.01,
replaysOnErrorSampleRate: 0.2,
});
Sentry.setTag('host', window.location.host);
Sentry.setTag('page_name', document.documentElement.getAttribute('data-page'));
}
try { __webpack_public_path__ = UiContext.cdn_prefix; } catch (e) { }
if ('serviceWorker' in navigator) {