Title: [Span Streaming] Resource Timing for fetch and XHR spans is missing · Issue #19613 · getsentry/sentry-javascript · GitHub
Open Graph Title: [Span Streaming] Resource Timing for fetch and XHR spans is missing · Issue #19613 · getsentry/sentry-javascript
X Title: [Span Streaming] Resource Timing for fetch and XHR spans is missing · Issue #19613 · getsentry/sentry-javascript
Description: For transactions, we retroactively added http timing data from the performance observer to http.client spans. This worked because although the span was already ended at time of receiving the timing data, we could still set attributes on ...
Open Graph Description: For transactions, we retroactively added http timing data from the performance observer to http.client spans. This worked because although the span was already ended at time of receiving the timing...
X Description: For transactions, we retroactively added http timing data from the performance observer to http.client spans. This worked because although the span was already ended at time of receiving the timing...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/19613
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Span Streaming] Resource Timing for fetch and XHR spans is missing","articleBody":"For transactions, we retroactively added http timing data from the performance observer to `http.client` spans. This worked because although the span was already ended at time of receiving the timing data, we could still set attributes on it because the parent span (pageload or navigation) was still active. This no longer works in span streaming because `captureSpan` immediately converts a `Span` instance to a JSON object when enqueuing it into the span buffer. So any retroactive `setAttribute` call does nothing (which is in line with OTel fwiw).\u003cbr>\u003cbr>We could \"fix\" this by doing what [OTel's browser fetch instrumentation](\u003chttps://github.com/open-telemetry/opentelemetry-js/blob/30f94fe99339287b1e4d3c8bb90172c2523f06f4/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts#L352-L372>) is doing: \n\n1. Record the timestamp when the span should end\n2. Wait for up to 300ms for performance observer timing data\n3. End the span after these 300ms or when receiving the timing data, with the original timestamp","author":{"url":"https://github.com/Lms24","@type":"Person","name":"Lms24"},"datePublished":"2026-03-03T17:46:59Z","url":"https://github.com/getsentry/sentry-javascript/issues/19613"}
| 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:ebb4a3de-9399-f2ca-0d6e-c5c73af07ed5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA26:3284B6:22D2B:2F65A:6B042A09 |
| html-safe-nonce | bde997bb593401e946c218dc441b15c2792f536e50ebb28b2f14e1257842f4d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTI2OjMyODRCNjoyMkQyQjoyRjY1QTo2QjA0MkEwOSIsInZpc2l0b3JfaWQiOiI2NDYyOTQyNDQ5NTEzMDE1ODE3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fc2452de2be4f45cfdf5ea656ba19eb8f26952d0e29686deab4d2a096dcdbb22 |
| hovercard-subject-tag | issue:4017951299 |
| 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/19613/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8b1ba05f406bdbbfd3b26bb83f9ff9497d86dce484ad051c548323924458f1c/getsentry/sentry-javascript/issues/19613 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8b1ba05f406bdbbfd3b26bb83f9ff9497d86dce484ad051c548323924458f1c/getsentry/sentry-javascript/issues/19613 |
| og:image:alt | For transactions, we retroactively added http timing data from the performance observer to http.client spans. This worked because although the span was already ended at time of receiving the timing... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lms24 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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