Add an experimental render_issue_chart tool that charts one issue's events
and affected users over time, the way the issue page's graph does. The
server picks the dataset (errors for error issues, issuePlatform for every
other issue type), both aggregates, and the issue page's bucket size, so the
model only names the issue and an optional range. It renders in the same
MCP Apps chart view as render_sentry_chart.
render_sentry_chart now rejects issue: and issue.id: filters with a
repairable error that points at render_issue_chart. On the errors dataset,
those filters return HTTP 200 with every bucket 0 for an issue-platform
issue, which reads as a real answer.
The two tools share the chart result building in tools/support/chart, and
the result's new tool field tells the view which tool to call for a new
range. The view ships as ui://sentry/chart/v4.html. In experimental
sessions, get_issue_details suggests a pre-filled render_issue_chart call.
Co-Authored-By: David Cramer <23610+dcramer@users.noreply.github.com>
Adds an experimental
render_issue_charttool. It charts one issue's events and affected users over time, like the graph on the issue page, and renders in the same MCP Apps chart view asrender_sentry_chart.Issue charts
get_issue_detailstakes it. A period or start/end is optional and defaults to 14d, which is what the issue page uses.errorsfor error issues andissuePlatformfor every other issue type. This is the issue page'susesIssuePlatformsplit, now in a sharedisErrorIssuehelper.count()andcount_unique(user).get_issue_detailssuggests a pre-filledrender_issue_chartcall.Fake-zero guard
On the
errorsdataset, anissue.id:filter for an issue-platform issue returns HTTP 200 with every bucket 0, and an agent reads that as a real answer.render_sentry_chartnow rejects any positiveissue:orissue.id:filter, lists included, with a repairable error that points torender_issue_chart. Negated filters (!issue:) still work.search_eventsno longer suggests arender_sentry_chartcall for issue-filtered queries.Shared view
tools/support/chart/series.ts, which both tools use.toolfield, and the view's range picker calls whichever tool drew the chart. The view accepts only the two chart tool names, so a result can't point it at a tool that changes data. A result without the field is treated asrender_sentry_chart's.ui://sentry/chart/v5.html, on top of feat(mcp): Tell the model about chart range changes and add fullscreen #2456's v4. The model context that view sends after a range change names the tool that drew the chart too.getEventsTimeSeriesaccepts several yAxes anddataset=issuePlatform.PUBLIC_EVENTS_DATASETSis unchanged.Co-Authored-By: Claude noreply@anthropic.com
via @dcramer.
--
View Session [Sentry]