mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: sentry: add tags
This commit is contained in:
2 files changed
+8
-6
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user