mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: filter expected client errors from Sentry
This commit is contained in:
1 parent
fae88b3c7a
commit
e7a263c96d
2 files changed
+7
-4
No files matched your search
@@ -17,6 +17,7 @@ init({
|
||||
tracePropagationTargets: ['localhost', /^\//, window.location.host],
|
||||
replaysSessionSampleRate: 0.01,
|
||||
replaysOnErrorSampleRate: 0.1,
|
||||
beforeSend: (event, hint) => ((hint.originalException as { isUserFacingError?: boolean } | undefined)?.isUserFacingError ? null : event),
|
||||
});
|
||||
setTag('host', window.location.host);
|
||||
setTag('page_name', document.documentElement.getAttribute('data-page'));
|
||||
|
||||
Reference in new issue
Block a user