Problem
When searching for replays by trace ID in Sentry's Explore UI, replays from Dart/Flutter apps are not discoverable. The SDK doesn't collect or include trace_ids in replay events.
Solution
When a transaction is captured while replay is recording, the trace ID should be registered with the replay system and included in the next replay segment's trace_ids field.
Reference implementations
Key points
- Collect trace IDs when transactions are successfully captured during replay recording
- Limit to max 100 trace IDs per segment (matching JS SDK)
- Clear collected trace IDs after each segment is sent
Note
Since Flutter delegates replay to native SDKs, this may need coordination with sentry-java (Android) and sentry-cocoa (iOS) implementations, plus a mechanism to pass trace IDs from Dart transactions to the native replay system.
Action taken on behalf of Roman Zavarnitsyn.
Problem
When searching for replays by trace ID in Sentry's Explore UI, replays from Dart/Flutter apps are not discoverable. The SDK doesn't collect or include
trace_idsin replay events.Solution
When a transaction is captured while replay is recording, the trace ID should be registered with the replay system and included in the next replay segment's
trace_idsfield.Reference implementations
Key points
Note
Since Flutter delegates replay to native SDKs, this may need coordination with sentry-java (Android) and sentry-cocoa (iOS) implementations, plus a mechanism to pass trace IDs from Dart transactions to the native replay system.
Action taken on behalf of Roman Zavarnitsyn.