Skip to content

Conversation

@kamilogorek
Copy link
Contributor

@kamilogorek kamilogorek commented Mar 29, 2021

Make sure that Fetch API spans have correct status.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 29, 2021

size-limit report

Path Size
@sentry/browser - CDN Bundle (gzipped) 20.58 KB (+0.01% 🔺)
@sentry/browser - Webpack 21.45 KB (0%)
@sentry/react - Webpack 21.49 KB (0%)
@sentry/browser + @sentry/tracing - CDN Bundle (gzipped) 27.79 KB (+0.06% 🔺)

@rhcarvalho
Copy link
Contributor

Possibly. Needs verification.

I think the root cause of #3350 is related to what span is in the scope by the time the error is reported. When we report the error we send the span context of the current span. If the current span is the pageload transaction, then we get what is described in #3350. I'd expect a fix to involve setting the Fetch span in the scope, or somehow using the span context of the Fetch span when reporting the error.

@rhcarvalho rhcarvalho marked this pull request as draft April 1, 2021 13:18
@kamilogorek kamilogorek marked this pull request as ready for review April 8, 2021 11:30
@kamilogorek
Copy link
Contributor Author

@rhcarvalho changed the description as the fix itself is still valid anyway and should be merged, whether it fixes #3350 or not.

Copy link
Member

@lobsterkatie lobsterkatie left a comment

Choose a reason for hiding this comment

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

LGTM

@kamilogorek kamilogorek merged commit d9e6976 into master Apr 13, 2021
@kamilogorek kamilogorek deleted the span-status branch April 13, 2021 08:55
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