Skip to content

Populate trace_ids in mobile replay events to enable searching replays by trace ID #6232

Description

@sentry-junior

Problem

When searching for replays by trace ID in Sentry's Explore UI, mobile replays from React Native are not discoverable. While web replay (via JS SDK) collects trace_ids, the mobile replay integration does not.

Solution

The mobileReplayIntegration should collect trace IDs when transactions are captured and pass them to the native replay system.

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)
  • Need a bridge mechanism to pass trace IDs from JS transactions to native replay
  • Android native SDK (sentry-java) now supports registerTraceId() — need similar support in iOS (sentry-cocoa)

Dependencies

  • sentry-cocoa needs to implement trace_ids support first (or in parallel)

Action taken on behalf of Roman Zavarnitsyn.

Activity

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

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions