find_dropped_events doesn't say that buckets snap to whole intervals
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Anfängerfreundlichkeit
- 78/100
- Issue-Typ
- Dokumentation
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- documentation, tooling
Rechercherichtung
Beginne in packages/mcp-core/src/tools/catalog/find-dropped-events.ts: Der Hinweistext für interval befindet sich etwa in den Zeilen 83-84 und 128-137, und das Response-Mapping, das meta.start/meta.end auslässt, steht in den Zeilen 212-217. Verfolge, wie das Tool sein Ergebnis aufbaut, sodass eine bedingte Anmerkung hinzugefügt werden kann, wenn start/end außerhalb der Intervallgrenzen liegen, und führe dann die Tests des Tools aus, um zu bestätigen, dass der neue Hinweis und die Anmerkung erscheinen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Pattern: find_dropped_events with start/end and a coarse interval returns full-interval volumes for the first and last buckets, not volumes for the requested window. Nothing in the tool output or the description says so. Callers that sum the buckets for a fixed window overcount.
Reports: 1 (Sentry MCP user feedback MCP-SERVER-GQD, python caller, server 0.42.0). The caller worked around it with interval=1h and told its user about the alignment limit.
What happens
- The caller passes
start=<…T18:01Z>,end=<…T06:01Z>,interval=1d. The tool forwards them unchanged toGET /organizations/{org}/events-dropped/(sampled span for this caller's call). - Sentry builds the outcomes query through
QueryDefinition→get_constrained_date_range(getsentry/sentrysrc/sentry/snuba/sessions_v2.py:451-487), which callsto_intervals(src/sentry/snuba/metrics/utils.py:414-449). That floorsstartto the interval and roundsendup to the next boundary. With1d, the range becomes<day>T00:00Zto<last day + 1>T00:00Z. So the first and last buckets hold whole-day totals. - The endpoint's
meta.start/meta.endreport the requested range, not the aligned one (src/sentry/api/endpoints/organization_events_dropped.py:233-234). The MCP tool doesn't returnmeta.start/meta.endat all (packages/mcp-core/src/tools/catalog/find-dropped-events.ts:212-217). Only each bucket's ownstart/endgives this away. - The description (
find-dropped-events.ts:83-84,:128-137) tells callers to "use '1d' and sum the buckets" for longer ranges, without saying that the first and last buckets can cover time outside the window.
Suggested fix (MCP side)
- When
start/enddon't fall on interval boundaries, add a note that gives the aligned range that was counted and says the edge buckets are whole intervals. Suggest a finer interval (for example1h) for exact windows. - Add one line to the
intervalhint saying buckets align to whole intervals in UTC.
Possible Sentry API follow-up (not filed): meta.start/meta.end could report the aligned range that was actually queried. Owner: whoever owns organization_events_dropped.py. The MCP note above doesn't depend on that change.
Not this issue: the same report's search_errors time-range problem is getsentry/toolkit#2146, and its explanation mismatch is getsentry/toolkit#2147.
via automation evt_905b9c478746fd9deeb853f85ad7441b · Run ID dispatch_ebd17b42670133526c625ae4ebab5254.
--
- Vorherrschende Sprache
- TypeScript
- Sterne
- 961
- Forks
- 179
- Ø Merge
- 15 Std. 33 Min.
- Gemergte PRs (30 T.)
- 476
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus getsentry/toolkit
-
CLI enhancement MCP
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 63/100
getsentry/toolkit#1908 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
getsentry/toolkit#1471 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
get_sentry_resource gives no guidance for Explore > Errors list URLsEvtl. vergeben @sentry-junior hat das heute übernommen. OffenMCP mcp-feedback-pattern
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 32/100
getsentry/toolkit#2278 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
getsentry/toolkit#2275 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
MCP mcp-feedback-pattern
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 68/100
getsentry/toolkit#2273 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in getsentry/toolkit
Ähnliche Issues
-
[BUG]: Duplicate preposition in heading and unformatted feedback text on Strengthen Argument pageOffenbug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
AOSSIE-Org/DebateAI#801 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
ci: repo has no GitHub Actions workflow, so pushes and pull requests are never built or testedOffenagents area: runtime automation chore cli consistency dependencies developer-experience difficulty: easy documentation enhancement good first issue help wanted hygiene json-output priority: P3 starters tests
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
-
Add: BOM CineOffenapproved check:passed streams:add
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 72/100
Maintainer antworten meist innerhalb von 1 Tag