Skip to content

Change XHR instrumentation ordering#2643

Merged
kamilogorek merged 3 commits intomasterfrom
xhr-instrument-order
Jun 8, 2020
Merged

Change XHR instrumentation ordering#2643
kamilogorek merged 3 commits intomasterfrom
xhr-instrument-order

Conversation

@kamilogorek
Copy link
Contributor

Fixes issue where 3rd party libraries like Axios are attaching their own handler before ours, resulting in missing breadcrumb in the consecutive error event.

Ref: #1333 (comment)

@getsentry-bot
Copy link
Contributor

getsentry-bot commented Jun 4, 2020

Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 17.0381 kB) (ES6: 16.0977 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against 31e8e80

Copy link
Member

@HazAT HazAT left a comment

Choose a reason for hiding this comment

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

🛰️ Changelog

LGTM

@kamilogorek kamilogorek requested a review from HazAT June 8, 2020 11:04
@kamilogorek kamilogorek merged commit 6aa2ece into master Jun 8, 2020
@kamilogorek kamilogorek deleted the xhr-instrument-order branch June 8, 2020 11:10
@Rockergmail
Copy link
Contributor

Rockergmail commented Sep 27, 2022

Change XHR instrumentation ordering is a good idea. I think the better solution is Proxy which can do really proxy including onchangestatechange. By this way, we can keep onchangestatechange of users and third party like axios.

I am going to refator in this way. Any other situation you can tell me when you try to solve this problem? @kamilogorek

Sign up for free to 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.

4 participants