-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix(replay): Correct getOutputType
to not use non-existant BODY_SKIPPED
warning
#84654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…IPPED` warning This actually does not exist in our SDK, instead we can make the same assumption using sdk configuration options (e.g. if they have the option enabled) and if the body is empty to determine if we should show the onboarding setup. ref: getsentry/sentry-javascript#7953 (comment) closes: getsentry/sentry-javascript#8004
❌ 1 Tests Failed:
View the top 1 failed tests by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Bundle ReportChanges will increase total bundle size by 91.71kB (0.28%) ⬆️. This is within the configured threshold ✅ Detailed changes
Affected Assets, Files, and Routes:view changes for bundle: app-webpack-bundle-array-pushAssets Changed:
|
isNetworkCaptureBodySetup = memoize(() => { | ||
return Boolean(this.getSDKOptions()?.networkCaptureBodies); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could skip memoize here, but nbd either way
// Capture body is not setup (this should also imply there is no body) | ||
if (['request', 'response'].includes(visibleTab) && !hasBody && !isCaptureBodySetup) { | ||
return Output.BODY_SKIPPED; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
woo! simpler ++
This actually does not exist in our SDK, instead we can make the same assumption using sdk configuration options (e.g. if they have the option enabled) and if the body is empty to determine if we should show the onboarding setup.
ref: getsentry/sentry-javascript#7953 (comment)
closes: getsentry/sentry-javascript#8004