|
@@ -93,6 +93,15 @@ export function initializeSdk(config: Config, {routes}: {routes?: Function} = {}
|
|
|
}
|
|
|
return tracesSampleRate;
|
|
|
},
|
|
|
+ beforeSendTransaction(event) {
|
|
|
+ event.spans = event.spans?.filter(span => {
|
|
|
+ // Filter analytic timeout spans.
|
|
|
+ return ['reload.getsentry.net', 'amplitude.com'].every(
|
|
|
+ partialDesc => !span.description?.includes(partialDesc)
|
|
|
+ );
|
|
|
+ });
|
|
|
+ return event;
|
|
|
+ },
|
|
|
/**
|
|
|
* There is a bug in Safari, that causes `AbortError` when fetch is
|
|
|
* aborted, and you are in the middle of reading the response. In Chrome
|