Title: Bug: no xhr breadcrumbs for error in onreadystatechange · Issue #1333 · getsentry/sentry-javascript · GitHub
Open Graph Title: Bug: no xhr breadcrumbs for error in onreadystatechange · Issue #1333 · getsentry/sentry-javascript
X Title: Bug: no xhr breadcrumbs for error in onreadystatechange · Issue #1333 · getsentry/sentry-javascript
Description: I think it's a bug When Raven instruments XMLHttpRequest and error occurs in onreadystatechange user function we don't see current request details in breadcrumbs for current error, because Raven log request in onreadystatechange after us...
Open Graph Description: I think it's a bug When Raven instruments XMLHttpRequest and error occurs in onreadystatechange user function we don't see current request details in breadcrumbs for current error, because Raven lo...
X Description: I think it's a bug When Raven instruments XMLHttpRequest and error occurs in onreadystatechange user function we don't see current request details in breadcrumbs for current error, because ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/1333
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bug: no xhr breadcrumbs for error in onreadystatechange","articleBody":"I think it's a bug\r\n\r\nWhen Raven instruments `XMLHttpRequest` and error occurs in `onreadystatechange` user function we don't see current request details in breadcrumbs for current error, because Raven log request in `onreadystatechange` after user code.\r\n\r\n**What is the current behavior?**\r\n\r\nHere is fiddle, just check console and see order of `ravenTransport breadcrumb` and `setBreadcrumbCallback` messages.\r\n\r\n\r\n**What is the expected behavior?**\r\n\r\nIt will be great if Raven can put xhr request info in breadcrumbs for `onreadystatechange` too.\r\n","author":{"url":"https://github.com/ilfa","@type":"Person","name":"ilfa"},"datePublished":"2018-05-16T19:53:56Z","url":"https://github.com/getsentry/sentry-javascript/issues/1333"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:792886c5-fd14-2c4a-b45d-a8c34b0224a3 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 920E:15E8C2:42C019:597632:6B04A0FB |
| html-safe-nonce | 761d024cd6e1f2c6cd22a8a4ed93b4588362ee70e2c3abc83509f770ef839f98 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MjBFOjE1RThDMjo0MkMwMTk6NTk3NjMyOjZCMDRBMEZCIiwidmlzaXRvcl9pZCI6IjU1Mjk0NTYzNDczODY3ODE5NDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ee0b0502b2c1850f5cd26d7532d41ee6d81ae894695fe3b8046c36e3e11c96f6 |
| hovercard-subject-tag | issue:323763208 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/1333/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6737b525249fa98308d1d13bbd98151618837e795f5cfcbfd59b2a2bda257518/getsentry/sentry-javascript/issues/1333 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6737b525249fa98308d1d13bbd98151618837e795f5cfcbfd59b2a2bda257518/getsentry/sentry-javascript/issues/1333 |
| og:image:alt | I think it's a bug When Raven instruments XMLHttpRequest and error occurs in onreadystatechange user function we don't see current request details in breadcrumbs for current error, because Raven lo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ilfa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width