Skip to content

feat(cli): add associated replay id to trace view command - #1917

Merged
BYK merged 2 commits into
mainfrom
lzhao/feat/add-replay-id-to-trace-view
Nov 5, 2026
Merged

BYK merged 2 commits into
mainfrom
lzhao/feat/add-replay-id-to-trace-view

Conversation

@lzhao-sentry

Copy link
Copy Markdown
Member

Changes

Exposes associated replay IDs when trace view is called to add more product connectedness between commands. It's an additional row in the trace summary and a top level field in --json for agents.

Also fixes a bug with getTraceMeta failing because of schema changes. Since the repo uses sentry/api, use vOrganizationTraceMetaResponse for TraceMetaSchema instead

@vercel

vercel Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sentry-local Ready Ready Preview Nov 4, 2026 3:04pm UTC

Request Review

Resolve the import conflict in packages/cli/src/types/sentry.ts: main
removed the @sentry/api/valibot import block (#1923), so keep only the
vOrganizationTraceMetaResponse import this branch needs.

Co-Authored-By: Lucy Zhao <[email protected]>
@lzhao-sentry
lzhao-sentry marked this pull request as ready for review November 4, 2026 15:13
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Nov 4, 2026

@BYK BYK left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks! And sorry for the late review.

): Promise<ReplayListItem | undefined> {
const { data } = await listReplays(orgSlug, {
query: `trace:${traceId}`,
statsPeriod: "90d",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be configurable? Especially if we can know roughly when and reduce this wouldn't it help with oerf on the backend?

@BYK
BYK merged commit 56d2bf2 into main Nov 5, 2026
28 checks passed
@BYK
BYK deleted the lzhao/feat/add-replay-id-to-trace-view branch November 5, 2026 09:17

This branch was successfully deployed

1 active deployment
Preview — 4a002730 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants