Repository navigation
fix(search-events): Note when a time series is cut to the newest buckets - #2153
Draft
sentry-junior[bot] wants to merge 1 commit into
Draft
sentry-junior[bot] wants to merge 1 commit into
sentry-junior[bot] wants to merge 1 commit into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Contributor
|
This PR has had no activity for 3 days. It closes in 2 days unless someone pushes, comments, or adds the |
Structured time-series results keep only the most recent 48 buckets. Callers saw bucketCount differ from the returned buckets but got no note saying older buckets were left out. Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
sentry-junior
Bot
force-pushed
the
fix/mcp-time-series-truncation-note
branch
from
November 22, 2026 18:55
714de18 to
5d50df7
Compare
Contributor
📊 MCP Server Token Cost ReportSummary
Per-Tool Breakdown
Note: This measures the static overhead of tool definitions sent to LLM clients with every request. Lower is better. MCP Apps viewsEach
The budget applies to raw bytes, and the view's generator fails over it. |
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.
Structured time-series results from
search_errors,search_traces, and the otherrunSearchEventstools return only the most recent 48 buckets (MAX_TIME_SERIES_ROWS,formatters.ts:1017,slice(-48)at:1059-1061). The markdown output says "most recent 48 of N". The structured output doesn't:notesstays empty, and the only clue is thatbucketCountdiffers frombuckets.length.User feedback MCP-SERVER-GNC (claude.ai,
search_tracesandsearch_errors): withperiod: "9d"at a 5m interval,bucketCountwas 2593 but only the last 48 buckets (~4h) came back. The caller wanted a 3-hour window from 8 days ago and couldn't tell why it was missing.Change
When buckets are cut,
buildStructuredTimeSeriesResultadds a note that says how many buckets came back out of how many, that older ones were left out, and that a coarser interval covers more of the range. Nothing else in the payload changes.This doesn't make old windows reachable. That needs the absolute window to reach the request: #2146 (agent's absolute range plus
period) and #1215 / #1228 (typedstart/end). With a 3h window the series has 36 buckets and isn't cut.Tests
search-errors.structured.test.ts: a 60-bucket series returns 48 buckets, starting at bucket 12, with the note. The test fails without the fix. All mcp-core tests pass (2244).via Sentry.
--
View Session [Sentry]