Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(browser): Only start http.client spans if there is an active parent span #11974

Merged
merged 2 commits into from May 10, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented May 10, 2024

We introduced sending standalone http.client spans in #11783. Subsequently, we had to revert this change due to internal timeline problems (😢). However, in the revert PR (#11879) we missed that originally, we checked for an active parent span and only then created an http.client span. The result were http.client transactions which we also don't want. This PR fixes that by re-introducing the hasParent check as it was pre-#11783.

@Lms24 Lms24 self-assigned this May 10, 2024
@Lms24 Lms24 enabled auto-merge (squash) May 10, 2024 12:02
Copy link
Contributor

size-limit report 📦

Path Size
@sentry/browser 21.65 KB (0%)
@sentry/browser (incl. Tracing) 32.69 KB (+0.05% 🔺)
@sentry/browser (incl. Tracing, Replay) 68.03 KB (+0.03% 🔺)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 61.43 KB (+0.03% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) 72.07 KB (+0.03% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) 84.26 KB (+0.03% 🔺)
@sentry/browser (incl. Feedback) 37.76 KB (0%)
@sentry/browser (incl. sendFeedback) 26.21 KB (0%)
@sentry/browser (incl. FeedbackAsync) 30.77 KB (0%)
@sentry/react 24.33 KB (0%)
@sentry/react (incl. Tracing) 35.66 KB (+0.05% 🔺)
@sentry/vue 25.48 KB (0%)
@sentry/vue (incl. Tracing) 34.49 KB (+0.05% 🔺)
@sentry/svelte 21.78 KB (0%)
CDN Bundle 24.13 KB (0%)
CDN Bundle (incl. Tracing) 34.06 KB (+0.05% 🔺)
CDN Bundle (incl. Tracing, Replay) 67.73 KB (+0.03% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) 72.88 KB (+0.03% 🔺)
CDN Bundle - uncompressed 70.99 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 101.03 KB (+0.03% 🔺)
CDN Bundle (incl. Tracing, Replay) - uncompressed 210.64 KB (+0.02% 🔺)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 223.64 KB (+0.02% 🔺)
@sentry/nextjs (client) 34.88 KB (+0.05% 🔺)
@sentry/sveltekit (client) 33.26 KB (+0.05% 🔺)
@sentry/node 147.35 KB (0%)

@Lms24 Lms24 merged commit deccc21 into develop May 10, 2024
98 checks passed
@Lms24 Lms24 deleted the lms/fix-browser-http-client-spans-only-if-parent branch May 10, 2024 12:19
andreiborza pushed a commit that referenced this pull request May 16, 2024
…rent span (#11974)

We introduced sending standalone `http.client` spans in
#11783. Subsequently,
we had to revert this change due to internal timeline problems (😢).
However, in the revert PR (#11879) we missed that originally, we checked
for an active parent span and only then created an `http.client` span.
The result were `http.client` _transactions_ which we also don't want.
This patch fixes that by re-introducing the `hasParent` check as it was
pre-#11783.
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.

None yet

2 participants