Skip to content

Search by replayID give no results on the Traces view. #5346

Closed

Description

@rodolfoBee

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

  1. Send a replay connected to a trace to Sentry
  2. Open the replay
  3. Switch to the "trace" tab.
  4. Click "Open in Explore"

Alternatively, search for spans associated with a replay in treces using replayId:REPLAY_ID

Expected Result

The traces view returns spans, transactions or traces with the replay ID.

Actual Result

No results.

Even when the UI shows no results, I can see the replay in the trace view (EXAMPLE) and in the root span JSON, I can see the replayID:

"replay": {
"replay_id": "59b86fe65a024f2e831e4857070f18d7",
"type": "replay"
},
...
"replay_id": "59b86fe6-5a02-4f2e-831e-4857070f18d7",

Searches using both replayID and replay_id give no results on the traces page.

Link to the replay in the examples above.

Product Area

Explore

Link

No response

DSN

No response

Version

No response

Activity

  1. linear-code commented on Apr 28, 2026

    @linear-code
  2. getsantry commented on Apr 28, 2026

    @getsantry

    Assigning to @getsentry/support for routing ⏲️

  3. moved this to Waiting for: Support in GitHub Issues with 👀 3on Apr 28, 2026
  4. sentry-junior commented on Apr 29, 2026

    @sentry-junior
    Contributor

    verified in getsentry/sentry-java:

    • SentryReplayEvent.setTraceIds() exists in sentry/src/main/java/io/sentry/SentryReplayEvent.java, but i could not find any production replay-generation code calling it.
    • the only in-repo setTraceIds( call site i found is inside SentryReplayEvent.Deserializer, i.e. deserialization, not replay creation/sending.
    • android replay event construction in sentry-android-replay/src/main/java/io/sentry/android/replay/capture/CaptureStrategy.kt sets fields like eventId, replayId, segmentId, timestamps, replayType, and videoFile, but does not set traceIds.
    • searching for traceIds, setTraceIds, and getTraceIds in production sources only turned up the SentryReplayEvent model/serializer itself.

    so this looks consistent with the reported behavior: android replays can be associated with a trace, but the replay event itself is not populating traceIds, which would explain why searching replayID in traces / traceID in replays does not work the same way as in browser.

    if useful, i can turn this into a small sentry-java issue next.

  5. moved this from Waiting for: Support to Waiting for: Product Owner in GitHub Issues with 👀 3on Apr 29, 2026
  6. reopened this on Apr 29, 2026
  7. rodolfoBee commented on May 27, 2026

    @rodolfoBee
    MemberAuthor

    Quick update on this.
    After this change in relay, searching for a replayID in Traces is now working.

    The replays are still not associated with a traceID, which makes searching for replays with a traceID not work. This issue will remain open while we work on it.

  8. added 3 commits that reference this issue on May 27, 2026
    f36ef61
    bfbf498
    d9c1521
  9. added a commit that references this issue on May 29, 2026
    4e3e79d
  10. github-actions commented on Jun 3, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #5473, which was included in the 8.43.1 release.

  11. added a commit that references this issue on Jun 12, 2026
    eec6fe0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions