Skip to content

fix(browser): Ensure spans auto-ended for navigations have cancelled reason #16277

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

Merged
merged 2 commits into from
May 14, 2025

Conversation

mydea
Copy link
Member

@mydea mydea commented May 13, 2025

Noticed that this now has externalFinish as reason, which is not really helpful. With this, you should be able to see that the pageload/navigation was ended because a new one started.

@mydea mydea requested review from Lms24 and s1gr1d May 13, 2025 08:31
@mydea mydea self-assigned this May 13, 2025
Copy link
Contributor

github-actions bot commented May 13, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 23.96 kB - -
@sentry/browser - with treeshaking flags 23.62 kB - -
@sentry/browser (incl. Tracing) 38.21 kB +0.03% +10 B 🔺
@sentry/browser (incl. Tracing, Replay) 76.32 kB +0.02% +8 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 69.35 kB +0.02% +7 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 81.09 kB +0.01% +7 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 93.18 kB +0.01% +5 B 🔺
@sentry/browser (incl. Feedback) 40.76 kB - -
@sentry/browser (incl. sendFeedback) 28.7 kB - -
@sentry/browser (incl. FeedbackAsync) 33.58 kB -0.01% -1 B 🔽
@sentry/react 25.77 kB -0.02% -3 B 🔽
@sentry/react (incl. Tracing) 40.21 kB +0.02% +7 B 🔺
@sentry/vue 28.34 kB -0.01% -1 B 🔽
@sentry/vue (incl. Tracing) 40 kB +0.02% +6 B 🔺
@sentry/svelte 23.99 kB - -
CDN Bundle 25.17 kB -0.01% -1 B 🔽
CDN Bundle (incl. Tracing) 38.23 kB +0.02% +7 B 🔺
CDN Bundle (incl. Tracing, Replay) 74.11 kB +0.02% +8 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 79.54 kB +0.01% +7 B 🔺
CDN Bundle - uncompressed 73.44 kB - -
CDN Bundle (incl. Tracing) - uncompressed 113.15 kB +0.03% +33 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 227.11 kB +0.02% +33 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 239.93 kB +0.02% +33 B 🔺
@sentry/nextjs (client) 41.86 kB +0.01% +4 B 🔺
@sentry/sveltekit (client) 38.68 kB +0.02% +6 B 🔺
@sentry/node 159.15 kB -0.01% -1 B 🔽
@sentry/node - without tracing 97.9 kB - -
@sentry/aws-serverless 124.41 kB - -

View base workflow run

@@ -30,6 +30,7 @@ sentryTest('creates a pageload transaction with url as source', async ({ getLoca
[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]: 1,
[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',
[SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'pageload',
['sentry.idle_span_finish_reason']: 'idleTimeout',
Copy link
Member

Choose a reason for hiding this comment

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

L: Would it make sense to create a variable for this string as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

we have, but not publicly exported (not meant to be used by users) :)

@mydea mydea merged commit e83658f into develop May 14, 2025
159 checks passed
@mydea mydea deleted the fn/idleSpanCancelled branch May 14, 2025 07:04
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.

3 participants