Skip to content

fix(tracing): Only create request span if there is active span#10375

Merged
AbhiPrasad merged 6 commits intodevelopfrom
abhi-span-request-active
Jan 29, 2024
Merged

fix(tracing): Only create request span if there is active span#10375
AbhiPrasad merged 6 commits intodevelopfrom
abhi-span-request-active

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Contributor

This was a regression introduced with #10236, we shouldn't arbitrarily call startInactiveSpan given we create transactions under the hood currently.

@AbhiPrasad AbhiPrasad requested a review from mydea January 26, 2024 18:11
@AbhiPrasad AbhiPrasad enabled auto-merge (squash) January 26, 2024 18:16
@AbhiPrasad AbhiPrasad requested a review from lforst January 26, 2024 18:18
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 26, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 78.12 KB (-0.03% 🔽)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.33 KB (-0.03% 🔽)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73.22 KB (-0.04% 🔽)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.95 KB (-0.03% 🔽)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.35 KB (-0.09% 🔽)
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.24 KB (-0.1% 🔽)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.33 KB (+0.01% 🔺)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.34 KB (+0.01% 🔺)
@sentry/browser - Webpack (gzipped) 22.6 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.89 KB (-0.09% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.44 KB (-0.09% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 33.32 KB (-0.14% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.51 KB (-0.03% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 212.53 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 100.54 KB (-0.02% 🔽)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.44 KB (+0.13% 🔺)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.4 KB (-0.17% 🔽)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.73 KB (-0.04% 🔽)
@sentry/react - Webpack (gzipped) 22.63 KB (-0.02% 🔽)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.4 KB (-0.04% 🔽)
@sentry/nextjs Client - Webpack (gzipped) 50.7 KB (-0.05% 🔽)
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB (-0.04% 🔽)

Copy link
Copy Markdown
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Good catch! We should do a broader audit of where else this could be happening at the moment.

@AbhiPrasad
Copy link
Copy Markdown
Contributor Author

image

image

@AbhiPrasad AbhiPrasad merged commit 9690d7d into develop Jan 29, 2024
@AbhiPrasad AbhiPrasad deleted the abhi-span-request-active branch January 29, 2024 20:33
@AbhiPrasad
Copy link
Copy Markdown
Contributor Author

FINALLY

AbhiPrasad added a commit to getsentry/sentry that referenced this pull request Jan 30, 2024
snigdhas pushed a commit to getsentry/sentry that referenced this pull request Jan 30, 2024
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