Skip to content

fix(browser)!: Use snake_case consistently for ops - #23100

Open
msonnb wants to merge 2 commits into
developfrom
ms/browser-ops-casing
Open

fix(browser)!: Use snake_case consistently for ops#23100
msonnb wants to merge 2 commits into
developfrom
ms/browser-ops-casing

Conversation

@msonnb

@msonnb msonnb commented Aug 6, 2026

Copy link
Copy Markdown
Member

Some browser.* and ui.* ops used inconsistent casing, this aligns them to snake_case as set by conventions.

Before Now
ui.long-task ui.long_task
ui.long-animation-frame ui.long_animation_frame
browser.unloadEvent browser.unload_event
browser.domContentLoadedEvent browser.dom_content_loaded_event
browser.loadEvent browser.load_event
browser.TLS/SSL browser.tls_ssl
browser.DNS browser.dns
resouce.script (typo) resource.script

@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.15 kB - -
@sentry/browser - with treeshaking flags 28.35 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.66 kB - -
@sentry/browser (incl. Tracing) 47.58 kB +0.04% +17 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 47.59 kB +0.04% +18 B 🔺
@sentry/browser (incl. Tracing, Profiling) 52.33 kB +0.03% +12 B 🔺
@sentry/browser (incl. Tracing, Replay) 86.95 kB +0.02% +15 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.37 kB +0.02% +11 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 91.67 kB +0.02% +15 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 104.3 kB +0.02% +14 B 🔺
@sentry/browser (incl. Feedback) 47.48 kB - -
@sentry/browser (incl. sendFeedback) 34.98 kB - -
@sentry/browser (incl. FeedbackAsync) 40.13 kB - -
@sentry/browser (incl. Metrics) 31.22 kB - -
@sentry/browser (incl. Logs) 31.44 kB - -
@sentry/browser (incl. Metrics & Logs) 32.13 kB - -
@sentry/react 31.95 kB - -
@sentry/react (incl. Tracing) 49.83 kB +0.04% +18 B 🔺
@sentry/vue 35.25 kB - -
@sentry/vue (incl. Tracing) 49.59 kB +0.04% +18 B 🔺
@sentry/svelte 30.17 kB - -
CDN Bundle 32.16 kB - -
CDN Bundle (incl. Tracing) 47.85 kB +0.05% +21 B 🔺
CDN Bundle (incl. Logs, Metrics) 33.7 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.23 kB +0.04% +18 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 73.03 kB - -
CDN Bundle (incl. Tracing, Replay) 85.48 kB +0.02% +14 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.8 kB +0.02% +13 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 91.31 kB +0.02% +16 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.63 kB +0.02% +15 B 🔺
CDN Bundle - uncompressed 95.33 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.93 kB +0.07% +98 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.96 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.91 kB +0.07% +98 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.66 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.19 kB +0.04% +98 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.16 kB +0.04% +98 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.9 kB +0.04% +98 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.85 kB +0.04% +98 B 🔺
@sentry/nextjs (client) 52.4 kB +0.04% +16 B 🔺
@sentry/sveltekit (client) 48.02 kB +0.04% +18 B 🔺
@sentry/core/server 65.58 kB - -
@sentry/core/browser 51.82 kB - -
@sentry/node 119.28 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.3 kB - -
@sentry/aws-serverless 92.61 kB - -
@sentry/cloudflare (withSentry) - minified 212.61 kB - -
@sentry/cloudflare (withSentry) 524.89 kB - -

View base workflow run

The `pageload-browser-spans` integration test builds the expected op
dynamically (`browser.${eventDesc}`), so the earlier literal search
missed it when the navigation-timing ops were switched to snake_case.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@msonnb
msonnb marked this pull request as ready for review August 6, 2026 15:00
@msonnb
msonnb requested review from a team as code owners August 6, 2026 15:00
@msonnb
msonnb requested review from Lms24, chargome, logaretm and s1gr1d and removed request for a team August 6, 2026 15:00

@logaretm logaretm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

q: Can those attributes be imported from sentry-conventions/op?

I didn't want to leave a comment on every single one.

startAndEndSpan(parent, startTime, startTime + duration, {
name: 'Main UI thread blocked',
op: 'ui.long-task',
op: 'ui.long_task',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can those attributes be imported from sentry-conventions/op?

startAndEndSpan(parent, startTime, startTime + duration, {
name: 'Main UI thread blocked',
op: 'ui.long-animation-frame',
op: 'ui.long_animation_frame',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same

@msonnb

msonnb commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

q: Can those attributes be imported from sentry-conventions/op?

@logaretm not yet since they're not released yet. i would do the breaking change now, then switch to the imported constants once they're released and we bumped the package.

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.

2 participants