Repository navigation
feat(sentry): Show Explore chart cards with the viewer's own query - #3408
Merged
Merged
Conversation
Co-Authored-By: BYK <[email protected]>
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…harts # Conflicts: # packages/junior-dashboard/src/client/conversations/ObjectCard.tsx # packages/junior-dashboard/src/mock-reporting/objects.ts
Contributor
|
51 screenshot changes — 47 changed · 4 added · 0 removed Review screenshots in Frameshift Show 12 more changed screenshots29 more changed screenshots in Frameshift. |
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.
BYK
approved these changes
Nov 14, 2026
BYK
enabled auto-merge (squash)
November 14, 2026 00:29
…harts # Conflicts: # packages/junior-dashboard/src/mock-reporting/objects.ts
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 85cfdfd. Configure here.
This was referenced Nov 14, 2026
BYK
pushed a commit
that referenced
this pull request
Nov 14, 2026
…3419) **Problem:** a grouped Explore chart with more than one aggregate named each series only by its group. `p95(span.duration)` and `count(span.duration)` for `db` both showed as "db", so the legend could not tell them apart. Introduced in #3408 ([review thread](#3408 (comment))). **Fix:** each label names the group and the aggregate, such as `db · p95(span.duration)`. The "Other" group gets the same treatment. A chart with one aggregate still uses the group as its label. | | Light | Dark | | --- | --- | --- | | Before |  |  | | After |  |  | <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3Ab784a61e6351b98fecdafda6e0e72301 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Ab784a61e6351b98fecdafda6e0e72301) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Ab784a61e6351b98fecdafda6e0e72301/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
BYK
added a commit
that referenced
this pull request
Nov 14, 2026
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 |  |  | | Hover card |  |  | <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3Ab784a61e6351b98fecdafda6e0e72301 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Ab784a61e6351b98fecdafda6e0e72301) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Ab784a61e6351b98fecdafda6e0e72301/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
23 tasks done
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

People share Sentry Explore links in threads to show a trend, such as a latency spike after a deploy. Today such a link shows as a plain URL, so readers must open Sentry to see what it shows. This PR makes links to Explore traces, logs, and metrics resolve to chart cards. It follows the issue cards (#3367, #3373) as part of the work to give Sentry links cards.
chartobject type. A new native type (label "Chart", icon "graph"). Its facts are a display (line, bar, or area), the y-axis, the range, and 1 to 5 series of 2 to 120 points. Slack cards and the model's text show the range as a field. On the dashboard, the range is the chart caption.Dashboard chart. The issue trend Sparkline now draws one or more series as lines, areas, or stacked bars. A legend names the series when there is more than one. The issue trend looks the same as before. The card meta line drops a label that repeats the type.
Access and data. A chart query covers the projects that its reader may see. Junior's org read token could see more than the viewer can, so the viewer's own Sentry token runs the query:
canViewruns theevents-timeseriesquery throughviewerEgress.resolvebuilds the card from that entry.The
viewerEgressdoc now covers data that depends on who reads it.@sentry/api. Sentry API calls for link cards use@sentry/api, pinned at 2.3.0, instead of hand-built requests. This covers the region lookup, the issue card reads, and the chart query. Each call goes through one Junior egress, so the host picks the token. Only the root client is used. It keeps no response cache, so one viewer's data never serves another.@sentry/[email protected]is the only newminimumReleaseAgeExcludeentry, because Sentry publishes it. Its dependenciesp-limit7.3.3 andhttp-cache-semantics4.2.0 pass the release age policy.Nothing breaks. Issue cards keep their behavior. No new OAuth scopes, credential paths, or migrations.
Screenshots
Desktop at 1440, rendered from the dashboard mock.
via @BYK.
--
View Session [Sentry]