Skip to content

Commit eda0d5a

Browse files
committed
Auto merge of #4128 - Turbo87:sentry-domains, r=locks
sentry: Use `allowUrls` option to filter out errors in injected scripts This is based on https://dzone.com/articles/6-tips-for-reducing-javascript-error-noise and filters out errors from e.g. broken browser extensions. It ensures that we only report errors that originate in the scripts served by our own servers.
2 parents 6a40496 + 299b528 commit eda0d5a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/sentry.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export function init() {
1818
...config.sentry,
1919
integrations,
2020

21+
allowUrls: ['crates.io', 'crates-io.herokuapp.com', 'staging.crates-io', 'staging-crates-io.herokuapp.com'],
22+
2123
beforeSend(event, hint) {
2224
let error = hint?.originalException;
2325

0 commit comments

Comments
 (0)