Skip to content

feat(seer): Add structured LLM context for traces explorer page#114347

Merged
Mihir-Mavalankar merged 1 commit intomasterfrom
mihir/seer-traces-explorer-llm-context
Apr 29, 2026
Merged

feat(seer): Add structured LLM context for traces explorer page#114347
Mihir-Mavalankar merged 1 commit intomasterfrom
mihir/seer-traces-explorer-llm-context

Conversation

@Mihir-Mavalankar
Copy link
Copy Markdown
Contributor

  • Give the Seer Explorer agent structured page context on the /explore/traces/ route instead of falling back to the ASCII DOM snapshot. The context captures the user's current search query, active tab, visualize metrics, group-by fields, and sort order, plus tool-call hints so the agent knows how to drill deeper.

Give the Seer Explorer agent structured page context on the
/explore/traces/ route instead of falling back to the ASCII DOM
snapshot. The context captures the user's current search query,
active tab, visualize metrics, group-by fields, and sort order,
plus tool-call hints so the agent knows how to drill deeper.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Mihir-Mavalankar Mihir-Mavalankar self-assigned this Apr 29, 2026
@Mihir-Mavalankar Mihir-Mavalankar requested review from a team as code owners April 29, 2026 18:55
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 29, 2026
@Mihir-Mavalankar Mihir-Mavalankar merged commit 5485824 into master Apr 29, 2026
68 checks passed
@Mihir-Mavalankar Mihir-Mavalankar deleted the mihir/seer-traces-explorer-llm-context branch April 29, 2026 21:17
Mihir-Mavalankar added a commit that referenced this pull request May 1, 2026
+ Replace the ASCII DOM snapshot with structured semantic context on the
/issues/ page for the Seer Explorer agent. Registers an 'issue-list'
node type that pushes query filters, sort order, issue count, page
filters, and a compact pipe-delimited CSV of the 25 visible issues
(shortId, title, type, level, priority, events, users, firstSeen) into
the LLM context tree.
+ Current p50 for this page is [5700
tokens](https://redash.getsentry.net/queries/10910). I am estimating
this will bring it down to ~1200.
+ Gated behind the context-engine-structured-page-context flag via
NEW_STRUCTURED_CONTEXT_ROUTES. ONly open to 4 internal users.
+ Similar work on other pages: 
+ Trace details page -#114093
+ Traces explore page - #114347
    + Dashboard page - #111973
+ Shipped post:
https://vanguard.getsentry.net/p/cmodhfvfr00033pvr5owrfnke

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
cleptric pushed a commit that referenced this pull request May 5, 2026
)

+ Give the Seer Explorer agent structured page context on the
/explore/traces/ route instead of falling back to the ASCII DOM
snapshot. The context captures the user's current search query, active
tab, visualize metrics, group-by fields, and sort order, plus tool-call
hints so the agent knows how to drill deeper.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
cleptric pushed a commit that referenced this pull request May 5, 2026
+ Replace the ASCII DOM snapshot with structured semantic context on the
/issues/ page for the Seer Explorer agent. Registers an 'issue-list'
node type that pushes query filters, sort order, issue count, page
filters, and a compact pipe-delimited CSV of the 25 visible issues
(shortId, title, type, level, priority, events, users, firstSeen) into
the LLM context tree.
+ Current p50 for this page is [5700
tokens](https://redash.getsentry.net/queries/10910). I am estimating
this will bring it down to ~1200.
+ Gated behind the context-engine-structured-page-context flag via
NEW_STRUCTURED_CONTEXT_ROUTES. ONly open to 4 internal users.
+ Similar work on other pages: 
+ Trace details page -#114093
+ Traces explore page - #114347
    + Dashboard page - #111973
+ Shipped post:
https://vanguard.getsentry.net/p/cmodhfvfr00033pvr5owrfnke

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants