feat(op): Add browser resource, timing phase, and UI span operations - #547
Conversation
Register the finite browser span operations emitted by sentry-javascript: - Resource initiator types: resource.worker, resource.icon, resource.frame, resource.object, resource.ping, resource.track (resource.other retained as the fallback). - Navigation timing phases: browser.unload_event, browser.redirect, browser.dom_content_loaded_event, browser.load_event, browser.connect, browser.tls_ssl, browser.cache, browser.dns, browser.request, browser.response. - UI operations: ui.mount, ui.update, ui.unmount, ui.long_task, ui.long_animation_frame, ui.interaction.click/hover/drag/press, ui.webvital.lcp, ui.webvital.cls. Generated artifacts (op.ts, op.rs) regenerated via `yarn generate`. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Breaking Changes 🛠
New Features ✨Attributes
Op
Other
Internal Changes 🔧Attribute
Attributes
Deps
Other
🤖 This preview updates automatically when you update the PR. |
|
Note: these are all snake_case now, whereas in the JS SDK we use a mixture of snake_kase, kebab-case, camelCase, UPPERCASE (for acronyms) |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit db539fa. Configure here.
| { | ||
| "name": "ui.long_task", | ||
| "description": "A long task on the main UI thread, as reported by the Long Tasks API." | ||
| }, |
There was a problem hiding this comment.
Duplicate long task span ops
Medium Severity
ui.long_task overlaps with the existing ui.task op, which already covers Long Tasks API main-thread work. Shipping both as active conventions fragments telemetry and leaves SDK authors without a single canonical op for the same concept.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit db539fa. Configure here.


Description
Add new browser ops:
PR Checklist
yarn testand verified that the tests pass.yarn generateto generate and format code and docs.If an attribute was added:
nextjs.function_id, notfunction_id)apply_scrubbing(i.e.manualorauto. Useneveronly for values that should never be scrubbed such as IDs)If an attribute was deprecated: