---
title: "Debugging our AI search assistant with agent tracing"
description: "Sentry's Search Query Assistant converts natural-language prompts into Sentry Search Syntax, and its team relies on evals plus agent tracing to debug wrong outputs."
url: "https://swe.quest/articles/debugging-our-ai-search-assistant-with-agent-tracing-56459c7d4f094d19"
canonical: "https://blog.sentry.io/debugging-our-ai-search-assistant-with-agent-tracing/"
source: "Sentry"
published: "2026-09-11"
difficulty: "medium"
kind: "Case study"
reading_minutes: 4
tags: ["ai-agents","observability","debugging","evals","llms"]
---

# Debugging our AI search assistant with agent tracing

A post on [Sentry](https://swe.quest/sources/sentry.md), published 2026-09-11, 4 min read, Case study. Original: [https://blog.sentry.io/debugging-our-ai-search-assistant-with-agent-tracing/](https://blog.sentry.io/debugging-our-ai-search-assistant-with-agent-tracing/)

## Summary

Sentry's Search Query Assistant converts natural-language prompts into Sentry Search Syntax, and its team relies on evals plus agent tracing to debug wrong outputs. One bug made queries on custom numeric attributes return nothing. Tracing the conversation's system prompt, LLM generations and tool calls through to the backend API trace showed the prompt listed fields by bare name (e.g. bug\_\_predictions\_count) instead of the required tags\[name, number\] form. The team turned that finding into a new eval, fixed the bug, confirmed the fix in production traces, and now sends local eval runs to Sentry too.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [Debugging](https://swe.quest/tags/debugging.md) (Engineering practices)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- distributed tracing basics ([easy posts on Observability](https://swe.quest/tags/observability.md?difficulty=easy))

## Keywords

Sentry, Search Query Assistant, Sentry Search Syntax, AI Conversation view, agent tracing

## Related posts

- [Five things you can do with Sentry’s Agent Tracing](https://swe.quest/articles/five-things-you-can-do-with-sentry-s-agent-tracing-5ac2ff6886459921.md): Sentry · 2026-10-28 · Medium · 19 min read · AI agents, Observability, Evaluation, LLMs
  Sentry's Agent Tracing captures model calls, tool executions and multi-agent handoffs in a single trace, and Sentry Cookbook recipes build workflows on top of that data.
- [Search agent traces by behavior with AI Search in LangSmith](https://swe.quest/articles/search-agent-traces-by-behavior-with-ai-search-in-langsmith-b56f880ffba2ede5.md): LangChain · 2026-10-13 · Medium · 7 min read · Observability, AI agents, LLMs, Search
  LangSmith's AI Search lets users find agent traces by behavior described in plain language (e.g. "did PII leak?", "did the user get frustrated?") by running a fast decision model over each candidate trace rather than relying on lossy embedding-based vector search.
- [The 3 Levels of Debugging With AI](https://swe.quest/articles/the-3-levels-of-debugging-with-ai-2547609068f4c653.md): Neon · 2025-05-22 · Medium · 8 min read · AI for coding, Debugging, AI agents, LLMs
  AI-assisted debugging falls into three levels: pasting raw errors into an LLM ("lazy prompting"), writing structured bug-report-style prompts with code, environment, expected vs. actual behavior, and attempts so far, and agents that drive real debuggers.
- [Trace & Evaluate your Agent with Arize Phoenix](https://swe.quest/articles/trace-evaluate-your-agent-with-arize-phoenix-ea5d226abd11d54e.md): Hugging Face · 2025-02-28 · Medium · 6 min read · AI agents, Evaluation, Observability, LLMs, Python
  A smolagents CodeAgent with DuckDuckGo search and webpage tools can be instrumented with OpenTelemetry and OpenInference so every agent call is traced in a local or hosted Arize Phoenix instance.
- [Automating Security Triage with HackerOne and Deep Search](https://swe.quest/articles/automating-security-triage-with-hackerone-and-deep-search-ce50e70d2f61dc6d.md): Sourcegraph · 2026-06-05 · Easy · 4 min read · Security, AI agents, LLMs
  Sourcegraph's security team built a small service that receives signed HackerOne webhooks for new bug bounty reports, verifies the signature, and sends the report to the Deep Search API to investigate it against the relevant codebase.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
