@@ -59,15 +59,19 @@ export function eventToSentryRequest(event: Event, api: APIDetails): SentryReque
59
59
const { method : samplingMethod , rate : sampleRate } = transactionSampling || { } ;
60
60
61
61
// TODO: Below is a temporary hack in order to debug a serialization error - see
62
- // https://github.com/getsentry/sentry-javascript/issues/2809 and
63
- // https://github.com/getsentry/sentry-javascript/pull/4425. TL;DR: even though we normalize all events (which should
64
- // prevent this), something is causing `JSON.stringify` to throw a circular reference error.
62
+ // https://github.com/getsentry/sentry-javascript/issues/2809,
63
+ // https://github.com/getsentry/sentry-javascript/pull/4425, and
64
+ // https://github.com/getsentry/sentry-javascript/pull/4574.
65
+ //
66
+ // TL; DR: even though we normalize all events (which should prevent this), something is causing `JSON.stringify` to
67
+ // throw a circular reference error.
65
68
//
66
69
// When it's time to remove it:
67
70
// 1. Delete everything between here and where the request object `req` is created, EXCEPT the line deleting
68
71
// `sdkProcessingMetadata`
69
72
// 2. Restore the original version of the request body, which is commented out
70
- // 3. Search for `skippedNormalization` and pull out the companion hack in the browser playwright tests
73
+ // 3. Search for either of the PR URLs above and pull out the companion hacks in the browser playwright tests and the
74
+ // baseClient tests in this package
71
75
enhanceEventWithSdkInfo ( event , api . metadata . sdk ) ;
72
76
event . tags = event . tags || { } ;
73
77
event . extra = event . extra || { } ;
0 commit comments