Skip to content

feat(trace): Include event data in trace item details API - #121461

Merged
mjq merged 1 commit into
masterfrom
mjq/transaction-in-trace-item-details
Aug 7, 2026
Merged

feat(trace): Include event data in trace item details API#121461
mjq merged 1 commit into
masterfrom
mjq/transaction-in-trace-item-details

Conversation

@mjq

@mjq mjq commented Aug 6, 2026

Copy link
Copy Markdown
Member

Adds an event field to the trace item details endpoint response, containing contexts, extra, and breadcrumbs properties. These are taken from the incoming transaction event and stored as attributes by Relay. (getsentry/relay#6286).

The span details pane in the trace waterfall currently uses the transaction event JSON to populate these properties when they're present. With this change we can use EAP instead, allowing us to break the dependency on transaction events (facilitating transaction ingestion shutdown).

Will always be missing for span streaming SDKs as expected, as those use attributes and logs for this data instead.

See BROWSE-673.

@mjq

mjq commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

@cursor review

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Aug 6, 2026
@mjq
mjq marked this pull request as ready for review August 6, 2026 17:24
@mjq
mjq requested review from a team as code owners August 6, 2026 17:24
@sentry

sentry Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Sentry Snapshot Testing

Name Added Removed Changed Renamed Unchanged Skipped Status
sentry-frontend
sentry-frontend
- - - - - - ✅ 451 uploaded

No base snapshots found to compare against. Make sure snapshots are uploaded from your main branch.

⚙️ sentry-frontend Snapshot Settings

@mjq
mjq merged commit 08ec952 into master Aug 7, 2026
58 of 67 checks passed
@mjq
mjq deleted the mjq/transaction-in-trace-item-details branch August 7, 2026 13:28
mjq added a commit that referenced this pull request Aug 7, 2026
Transaction events' `contexts`, `extra`, and `breadcrumbs` are now
deprecated under span streaming (replaced with attributes, attributes,
and logs, respectively). However, SDKs that are still sending this data
should still have it visible.

These transaction fields are serialized to attributes in Relay
(getsentry/relay#6286) and then emitted by the
trace item details API
(#121461). Use them in
preference to the transaction event. We keep reading the transaction
event so that data predating this data being written to EAP (Aug 6,
2026) continue to work.

Note that:
- The `Request` section is now missing, whether from a transaction event
or EAP. All this data is already written to attributes (from a
transaction or a streaming span) so it hasn't disappeared, it's just in
a new form.
- EAP currently lacks the `_meta` equivalent for these fields, so we've
lost annotations for redactions, etc when this data is sourced from EAP.
I'm going to restore this soon
(getsentry/relay#6296), but I don't want to wait
for it (better to show the data without annotations than to have no data
at all).

Fixes BROWSE-673.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants