Skip to content

feat(mcp): Hint find_dropped_events when a time series has empty buckets - #1702

Open
sentry-junior[bot] wants to merge 1 commit into
mainfrom
feat/hint-dropped-events-on-gaps
Open

sentry-junior[bot] wants to merge 1 commit into
mainfrom
feat/hint-dropped-events-on-gaps

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

After #1700, find_dropped_events can only be reached through the catalog. This PR adds a hint to telemetry search responses, so the tool still comes up when a result suggests data might be missing. It stays out of the default tools/list.

When a time series result from search_errors, search_logs, search_traces, or search_metrics has empty buckets, the response now ends with a short Next Steps line. It suggests calling find_dropped_events for the same org, project, dataset and time range. An empty bucket can mean Sentry dropped the events (quota, rate limits, sampling, filters), not that nothing happened.

The hint only appears when:

  • a complete bucket is empty, or the series has no data at all;
  • the dataset is one the events-dropped endpoint covers, so not profiles;
  • find_dropped_events is available in the session.

Series with data in every bucket and list-style searches don't change. DROPPED_EVENTS_DATASETS moves to utils/events-datasets.ts so the tool and the search hint use the same list.

via David Cramer.

--

View Junior Session [Sentry]

Time series results from search_errors, search_logs, search_traces, and
search_metrics now point at find_dropped_events for the same org, project,
and time range when complete buckets are empty. A gap can mean Sentry
dropped the events (quota, rate limits, sampling, filters) rather than
none occurring. The hint is omitted when the tool is unavailable.

Co-Authored-By: David Cramer <[email protected]>
@vercel

vercel Bot commented Oct 28, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 28, 2026 6:34pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 28, 2026

This branch was successfully deployed

1 active and 1 inactive deployments
Actions — 8b750721 Deployed Oct 28, 2026 by sentry-junior[bot] via eval #1393
Preview — 8b750721 Deployed Oct 28, 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.

0 participants