Skip to content

feat(sentry): Show Sentry trace cards with the viewer's own read - #3418

Merged
BYK merged 12 commits into
mainfrom
feat/sentry-trace-cards
Nov 14, 2026
Merged

BYK merged 12 commits into
mainfrom
feat/sentry-trace-cards

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Today a Sentry trace link in a reply is a bare URL. A reader has to open Sentry to learn what the trace did, how long it took, and whether it failed. This PR shows that at a glance, as a card with the root span, the totals, and a small waterfall of the first top-level spans.

A trace can cross projects that the reader may not see. So the viewer's own Sentry account reads it, and Sentry decides what each viewer sees.

  • New trace object type: labelled "Trace" with the rows icon. Its facts are the root op and name, the duration, the span, error and performance issue counts, up to 5 projects, and up to 12 top-level spans. Spans are dropped from the end until the facts fit in 4 KiB.
  • Dashboard waterfall: TraceWaterfall draws the spans on one time axis. A span with an error or a performance issue is red.
  • Viewer read: canView reads trace-meta and trace with the viewer's token through viewerEgress. The result is cached per viewer and trace for 1 minute, and resolve reuses that entry. Junior's org token only finds the org's region host. A viewer who has not connected Sentry, or who can see none of the trace's spans, gets no card. This adds no scopes or credential paths.
  • URLs: explore/traces/trace/<id>/ and performance/trace/<id>/, on sentry.io/organizations/<org>/ and <org>.sentry.io. An optional timestamp narrows the read. Without it, the read looks back 14 days.

Builds on #3408 (merged).

Screenshots are from the dashboard mock at 1440.

Light Dark
Card Trace card, light Trace card, dark
Hover card Trace hover card, light Trace hover card, dark

via @BYK.

--

View Session [Sentry]

sentry-junior Bot and others added 11 commits November 13, 2026 23:11
Add a chart object type, drawn by the dashboard Sparkline as line, bar,
or area series with a legend. Sentry Explore traces, logs, and metrics
links resolve to chart cards. The viewer's own Sentry token runs the
events-timeseries query in canView, cached per viewer and URL for a
minute, and resolve draws the card from that entry.

Sentry API calls for link cards now use @sentry/api 2.3.0, exempt from
the release age delay because Sentry publishes it.

Co-Authored-By: BYK <[email protected]>
…harts

# Conflicts:
#	packages/junior-dashboard/src/client/conversations/ObjectCard.tsx
#	packages/junior-dashboard/src/mock-reporting/objects.ts
Add a native trace object type with a mini waterfall of top-level spans.
The viewer's own token reads trace-meta and trace through viewerEgress in
canView, cached per viewer and trace for a minute; resolve reuses it.
A valid statsPeriod wins over stale start and end, the bounds count only
as a pair, and Sentry's zone-less bounds are UTC. A bucket with no
samples is drawn across from its neighbors instead of as a zero.
…harts

# Conflicts:
#	packages/junior-dashboard/src/mock-reporting/objects.ts
# Conflicts:
#	packages/junior-dashboard/src/mock-reporting/objects.ts
Co-Authored-By: BYK <[email protected]>

# Conflicts:
#	packages/junior-dashboard/e2e/conversation-object-links.spec.ts
#	packages/junior-dashboard/src/client/conversations/ObjectCard.tsx
#	packages/junior-dashboard/src/mock-reporting/fixtures.ts
#	packages/junior-dashboard/src/mock-reporting/objects.ts
#	packages/junior-dashboard/src/object-icon-images.ts
#	packages/junior-plugin-api/src/object-facts.ts
#	packages/junior-plugin-api/src/object-icons.ts
#	packages/junior-plugin-api/src/object-presentation.ts
#	packages/junior-sentry/src/index.ts
#	scripts/generate-object-icons.mjs
@sentry-junior
sentry-junior Bot requested a review from BYK November 14, 2026 01:03
@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 14, 2026 1:29am UTC

Request Review

@github-actions github-actions Bot added the risk: high PR risk score: high label Nov 14, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit fb4fe43. Configure here.

@BYK
BYK enabled auto-merge (squash) November 14, 2026 01:33
@github-actions

Copy link
Copy Markdown
Contributor

50 screenshot changes — 46 changed · 4 added · 0 removed

Review screenshots in Frameshift

Automation Run Details · Desktop
Automation Run Details · Desktop
Changed
Automation Skill Editor · Desktop
Automation Skill Editor · Desktop
Changed
Automations Runs Filters · Desktop
Automations Runs Filters · Desktop
Changed
Conversation Attached Linked Work · Desktop
Conversation Attached Linked Work · Desktop
Changed
Conversation Attached Linked Work Denied · Desktop
Conversation Attached Linked Work Denied · Desktop
Changed
Conversation Attached Linked Work Denied Light · Desktop
Conversation Attached Linked Work Denied Light · Desktop
Changed
Show 12 more changed screenshots
Conversation Attached Linked Work Light · Desktop
Conversation Attached Linked Work Light · Desktop
Changed
Conversation Attachment Zoom · Desktop
Conversation Attachment Zoom · Desktop
Changed
Conversation Captured Memories Popover · Desktop
Conversation Captured Memories Popover · Desktop
Changed
Conversation Child Agents · Desktop
Conversation Child Agents · Desktop
Changed
Conversation Details Watched Linked Work · Desktop
Conversation Details Watched Linked Work · Desktop
Changed
Conversation Event Log · Mobile
Conversation Event Log · Mobile
Changed
Conversation Google Calendar Link · Desktop
Conversation Google Calendar Link · Desktop
Changed
Conversation Google Calendar Link Light · Desktop
Conversation Google Calendar Link Light · Desktop
Changed
Conversation Google Document Link · Desktop
Conversation Google Document Link · Desktop
Changed
Conversation Google Document Link Light · Desktop
Conversation Google Document Link Light · Desktop
Changed
Conversation Google Drive File Link · Desktop
Conversation Google Drive File Link · Desktop
Changed
Conversation Google Drive File Link Light · Desktop
Conversation Google Drive File Link Light · Desktop
Changed

28 more changed screenshots in Frameshift.

@BYK
BYK merged commit e05d5c5 into main Nov 14, 2026
45 checks passed
@BYK
BYK deleted the feat/sentry-trace-cards branch November 14, 2026 01:36

This branch was successfully deployed

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

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant