Skip to content

fix(search-events): Run literal queries without Seer or the agent - #1635

Draft
sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/search-skip-seer-literal-queries
Draft

sentry-junior[bot] wants to merge 1 commit into
mainfrom
fix/search-skip-seer-literal-queries

Conversation

@sentry-junior

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

Copy link
Copy Markdown
Contributor

The search tools send any query without a key:value filter to Seer's search agent, including queries that have only one possible meaning. Those runs add latency and Seer load for no gain, and when Seer is slow (it currently hits the 60s timeout on roughly a fifth of MCP runs) we also pay for the embedded-agent fallback.

This handles those queries directly, with no Seer or embedded-agent call:

  • * → no filter
  • a bare 32-character hex ID → trace:<id> (lowercased)
  • a single quoted phrase (e.g. "connection refused") → sent as is as a full-text search

It only applies where Seer would otherwise run (Seer dataset, no structured syntax, no explicit fields or sort). Everything else keeps the current behavior, including other free text, half-written filters, and boolean prose. The final validateEventsSearch gate and environment handling still apply. Bare 32-character hex IDs are read as trace IDs; event IDs have dedicated lookup tools.

via @DominikB2014.

--

View Junior Session [Sentry]

A bare trace ID, `*`, or a single quoted phrase has only one reading, so
translating it with Seer or the embedded agent adds latency and cost with
nothing to gain. Rewrite these directly into Sentry search syntax wherever
Seer would otherwise run.

Co-Authored-By: Dominik Buszowiecki <44422760+DominikB2014@users.noreply.github.com>
@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-local Ready Ready Preview Oct 23, 2026 4:54pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 23, 2026
@DominikB2014
DominikB2014 marked this pull request as draft October 23, 2026 16:51

This branch was successfully deployed

2 active deployments
Preview — 89577689 Deployed Oct 23, 2026 by vercel[bot]
Actions — 89577689 Deployed Oct 23, 2026 by sentry-junior[bot] via eval #1360
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.

1 participant