# Debugging our AI search assistant with agent tracing

DevFeed: [Debugging our AI search assistant with agent tracing](<https://devfeed.tech/articles/debugging-our-ai-search-assistant-with-agent-tracing-24095.md>)

Original publisher: [Read original article](<https://blog.sentry.io/debugging-our-ai-search-assistant-with-agent-tracing/>)

Author: Dominik Buszowiecki; Shaun Kaasten

Published: 2026-09-11T09:00:00Z

Content type: article

Language: en

Sources: [Sentry](<https://devfeed.tech/sources/sentry-blog.md>)

Topics: [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Conversational AI](<https://devfeed.tech/topics/conversational-ai.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [api](<https://devfeed.tech/tags/api.md>), [bug](<https://devfeed.tech/tags/bug.md>), [custom](<https://devfeed.tech/tags/custom.md>), [data](<https://devfeed.tech/tags/data.md>), [debug](<https://devfeed.tech/tags/debug.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [diagnose](<https://devfeed.tech/tags/diagnose.md>), [end-to-end-testing](<https://devfeed.tech/tags/end-to-end-testing.md>), [error](<https://devfeed.tech/tags/error.md>), [errors](<https://devfeed.tech/tags/errors.md>), [eval](<https://devfeed.tech/tags/eval.md>), [evals](<https://devfeed.tech/tags/evals.md>), [generation](<https://devfeed.tech/tags/generation.md>), [language](<https://devfeed.tech/tags/language.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [query](<https://devfeed.tech/tags/query.md>), [search](<https://devfeed.tech/tags/search.md>), [sentry](<https://devfeed.tech/tags/sentry.md>)

## AI overview

Sentry engineers use evals to check whether their Search Query Assistant converts natural-language prompts into Sentry Syntax queries, then investigate failures. Simple cases can be reproduced locally with JSON outputs or mocked tool calls. When behavior depends on returned data, model versions, or infrastructure errors, Sentry's AI Conversation view helps inspect what the agent saw and did. In an end-to-end test, a query for events whose custom numerical attribute exceeded a threshold returned no results. The excerpt begins describing how engineers located that AI Conversation but ends before explaining the diagnosis or fix.

## Source excerpt

See how Sentry engineers used AI Conversations to debug a natural language search assistant and fix a tricky query generation bug.