feat(attributes): Add sentry.pageload.span_id attribute#495
Conversation
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Attributes
🤖 This preview updates automatically when you update the PR. |
try.pageload.span_id attributesetry.pageload.span_id attribute
setry.pageload.span_id attributesentry.pageload.span_id attribute
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.
Reviewed by Cursor Bugbot for commit e8096a5. Configure here.
| "type": "string", | ||
| "apply_scrubbing": { | ||
| "key": "manual" | ||
| }, |
There was a problem hiding this comment.
Span ID uses manual scrubbing
Medium Severity
sentry.pageload.span_id is defined with apply_scrubbing manual, but it holds a pageload span identifier used to link web vital spans and metrics. Other Sentry span ID attributes (sentry.segment.id, sentry.replay_id, sentry.trace.parent_span_id) use never, and project guidance treats opaque IDs that way so scrubbing does not break correlation.
Reviewed by Cursor Bugbot for commit e8096a5. Configure here.


Description
Already sent by the browser SDK on v1 and v2 web vital spans. Also helpful for web vitals as metrics
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: