feat(trace): Include event data in trace item details API - #121461
Merged
Conversation
Member
Author
|
@cursor review |
mjq
marked this pull request as ready for review
August 6, 2026 17:24
narsaynorath
approved these changes
Aug 6, 2026
Contributor
Sentry Snapshot Testing
No base snapshots found to compare against. Make sure snapshots are uploaded from your main branch. |
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an
eventfield to the trace item details endpoint response, containingcontexts,extra, andbreadcrumbsproperties. 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.