Skip to content

fix(replay): Fix missing fetch/xhr requests - #7134

Merged
billyvg merged 1 commit into
developfrom
fix-replay-fix-missing-fetch-xhr-requests
Feb 10, 2023
Merged

fix(replay): Fix missing fetch/xhr requests#7134
billyvg merged 1 commit into
developfrom
fix-replay-fix-missing-fetch-xhr-requests

Conversation

@billyvg

@billyvgbillyvg commented Feb 10, 2023

Copy link
Copy Markdown
Member

Logic was flipped for the filter function so fetch and xhr requests were not being recorded at all.

Closeshttps://github.com/getsentry/team-replay/issues/9
Closes#7078

Logic was flipped for the filter function so fetch and xhr requests were not being recorded at all.
@billyvg

Copy link
Copy Markdown
MemberAuthor

We should add an integration test for this.

@billyvg
billyvg requested review from Lms24 and mydeaFebruary 10, 2023 03:57
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
@sentry/browser - ES5 CDN Bundle (gzipped + minified)20.06 KB (-0.02% 🔽)
@sentry/browser - ES5 CDN Bundle (minified)62.19 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified)18.69 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified)55.33 KB (0%)
@sentry/browser - Webpack (gzipped + minified)20.42 KB (0%)
@sentry/browser - Webpack (minified)66.77 KB (0%)
@sentry/react - Webpack (gzipped + minified)20.45 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified)47.85 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified)26.97 KB (-0.01% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified)25.23 KB (0%)
@sentry/replay ES6 CDN Bundle (gzipped + minified)42.27 KB (-0.01% 🔽)
@sentry/replay - Webpack (gzipped + minified)36.7 KB (0%)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified)59.93 KB (-0.01% 🔽)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified)53.48 KB (-0.01% 🔽)

@mydeamydea left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn, good catch! filter boolean responses are always a bit ambiguous 😬

@Lms24Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

I added a point to our list of integration test scenarios: #7044

@github-actions

github-actionsBot commented Feb 10, 2023

Copy link
Copy Markdown
Contributor

Replay SDK metrics 🚀

Plain+Sentry+Replay
RevisionValueValueDiffRatioValueDiffRatio
LCPThis PR c3806eb70.01 ms98.07 ms+28.06 ms+40.07 %149.86 ms+79.85 ms+114.05 %
Previous b49d9f796.68 ms129.08 ms+32.40 ms+33.52 %149.47 ms+52.79 ms+54.61 %
CLSThis PR c3806eb0.06 ms0.06 ms-0.00 ms-0.12 %0.06 ms-0.00 ms-0.16 %
Previous b49d9f70.06 ms0.06 ms-0.00 ms-0.38 %0.06 ms-0.00 ms-0.27 %
CPUThis PR c3806eb16.26 %14.68 %-1.57 pp-9.67 %28.36 %+12.10 pp+74.45 %
Previous b49d9f722.38 %21.54 %-0.84 pp-3.76 %37.84 %+15.46 pp+69.08 %
JS heap avgThis PR c3806eb1.94 MB1.99 MB+44.35 kB+2.28 %2.99 MB+1.05 MB+53.81 %
Previous b49d9f71.94 MB1.99 MB+47.17 kB+2.43 %3.01 MB+1.07 MB+54.98 %
JS heap maxThis PR c3806eb2.3 MB2.56 MB+252.17 kB+10.95 %4.46 MB+2.16 MB+93.75 %
Previous b49d9f72.32 MB2.56 MB+234.93 kB+10.12 %4.53 MB+2.21 MB+95.07 %
netTxThis PR c3806eb0 B0 B0 Bn/a2.54 kB+2.54 kBn/a
Previous b49d9f70 B0 B0 Bn/a2.59 kB+2.59 kBn/a
netRxThis PR c3806eb0 B0 B0 Bn/a41 B+41 Bn/a
Previous b49d9f70 B0 B0 Bn/a41 B+41 Bn/a
netCountThis PR c3806eb000n/a1+1n/a
Previous b49d9f7000n/a1+1n/a
netTimeThis PR c3806eb0.00 ms0.00 ms0.00 msn/a93.58 ms+93.58 msn/a
Previous b49d9f70.00 ms0.00 ms0.00 msn/a70.48 ms+70.48 msn/a

Previous results on branch: develop

RevisionLCPCLSCPUJS heap avgJS heap maxnetTxnetRxnetCountnetTime
b49d9f7+52.79 ms-0.00 ms+15.46 pp+1.07 MB+2.21 MB+2.59 kB+41 B+1+70.48 ms
7e57cb7+47.89 ms+0.00 ms+10.59 pp+1.09 MB+2.21 MB+2.59 kB+41 B+1+72.93 ms
538c3a6+63.63 ms+0.00 ms+14.14 pp+1.07 MB+2.16 MB+2.6 kB+41 B+1+112.08 ms
fc7b716+52.44 ms+0.00 ms+14.74 pp+1.09 MB+2.21 MB+2.68 kB+41 B+1+89.64 ms

*) pp - percentage points - an absolute difference between two percentages.
Last updated: Fri, 10 Feb 2023 10:44:36 GMT

@billyvg
billyvg marked this pull request as ready for review February 10, 2023 13:56
@billyvg
billyvg merged commit 4827b60 into developFeb 10, 2023
@billyvg
billyvg deleted the fix-replay-fix-missing-fetch-xhr-requests branch February 10, 2023 13:57
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replay: Missing fetch/xhr breadcrumbs

3 participants

@billyvg@mydea@Lms24