Skip to content

ref(mcp): Use events-timeseries for search_events time series - #1431

Draft
edwardgou-sentry wants to merge 1 commit into
mainfrom
edward/ref/mcp-events-timeseries
Draft

edwardgou-sentry wants to merge 1 commit into
mainfrom
edward/ref/mcp-events-timeseries

Conversation

@edwardgou-sentry

Copy link
Copy Markdown

Summary

Switches getEventsTimeSeries from /events-stats/ to /events-timeseries/. The new endpoint flags buckets that are still receiving data and, for EAP datasets on flagged orgs, reports the measured ingestion delay in meta.ingestion.

Changes

  • schema.ts: replace EventsStatsResponseSchema with EventsTimeSeriesResponseSchema (+ IngestionMetaSchema)
  • client.ts: new endpoint path, drop partial=1 (no longer needed)
  • formatters.ts: incomplete buckets are marked * and excluded from Peak; Total is labelled "(so far)"; an Ingestion line reports delay and the complete-through time when present
  • Tests updated for the new response shape, plus a case covering incomplete buckets and ingestion meta

Ingestion metadata depends on getsentry/sentry#126630 for orgs with measured-ingestion-delay-metadata; the field is optional so nothing breaks before that lands.

The CLI's dashboard code still uses events-stats and is out of scope here.

Switches getEventsTimeSeries from events-stats to events-timeseries so the
tool can mark incomplete buckets and report measured ingestion delay.

This branch was successfully deployed

1 active deployment
Actions — 6e9c1954 Deployed Oct 6, 2026 by edwardgou-sentry via eval #1248
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant