SIGN IN SIGN UP

fix(replay): Associate trace IDs with replay segments (#5473)

* fix(replay): Populate trace_ids in replay events for trace search

When a transaction is captured while replay is recording, the trace ID
is now registered with the replay controller and included in the next
replay segment. This enables searching for replays by trace ID in the
Sentry UI.

Fixes #5346

Slack thread: https://sentry.slack.com/archives/CP4UUUF1S/p1779889727948439?thread_ts=1777385469.860819&cid=CP4UUUF1S

https://claude.ai/code/session_012wjHQtsEPzcrxSMCufxrDY

* docs: Add changelog entry for trace_ids fix

https://claude.ai/code/session_012wjHQtsEPzcrxSMCufxrDY

* Format code

* api dump

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: Sentry Github Bot <bot+github-bot@sentry.io>
R
Roman Zavarnitsyn committed
4e3e79da82431a9fd3081a829281371c79709f19
Parent: 9404243
Committed by GitHub <noreply@github.com> on 5/29/2026, 2:37:03 PM