Skip to content

fix(replays): Query canonical replay id in trace tab#116432

Open
romtsn wants to merge 1 commit into
masterfrom
rz/fix/replay-trace-span-query
Open

fix(replays): Query canonical replay id in trace tab#116432
romtsn wants to merge 1 commit into
masterfrom
rz/fix/replay-trace-span-query

Conversation

@romtsn
Copy link
Copy Markdown
Member

@romtsn romtsn commented May 28, 2026

Fix replay trace discovery after the Trace tab switched to the spans dataset.

The Replay Trace tab still queried spans with only the legacy replayId tag. That misses SDK data where the replay id is propagated through the canonical span field as replay.id instead of the JavaScript-specific tag.

Query both replay.id and replayId so new canonical span data works while preserving compatibility with older JavaScript/legacy data. Apply the same query and spans dataset to the replay trace metadata pre-query, otherwise non-JS SDKs can load the trace list while missing metadata counts.

I also checked the existing replay alias, but it is not active for this request path in production, so the query stays explicit.

Refs REPLAY-915

@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 28, 2026

REPLAY-915

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 28, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 28, 2026

📊 Type Coverage Diff

✅ No new type safety issues introduced. Coverage: 93.59%

@romtsn romtsn marked this pull request as ready for review May 28, 2026 21:16
@romtsn romtsn requested a review from a team as a code owner May 28, 2026 21:16
Comment thread static/app/views/explore/replays/detail/trace/useReplayTraces.tsx
@romtsn romtsn requested a review from gggritso May 28, 2026 21:18
@romtsn romtsn force-pushed the rz/fix/replay-trace-span-query branch from b50c6e9 to 64922d9 Compare May 28, 2026 21:43
@romtsn romtsn requested a review from a team as a code owner May 28, 2026 21:43
The Replay trace tab now queries spans using replay.id while preserving the legacy replayId tag fallback. This lets trace discovery work for SDKs that rely on Relay/Snuba replay context propagation instead of the JavaScript-specific replayId tag.

Refs REPLAY-915

Co-Authored-By: Codex <noreply@openai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant