# Five things you can do with Sentry's Agent Tracing

DevFeed: [Five things you can do with Sentry's Agent Tracing](<https://devfeed.tech/articles/five-things-you-can-do-with-sentry-s-agent-tracing-105671.md>)

Original publisher: [Read original article](<https://blog.sentry.io/agent-tracing-use-cases/>)

Author: Anton Bjorkman

Published: 2026-10-28T09:00:00Z

Content type: tutorial

Language: en

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

Topics: [agent observability](<https://devfeed.tech/topics/agent-observability.md>), [tracing](<https://devfeed.tech/topics/tracing.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-costs](<https://devfeed.tech/tags/agent-costs.md>), [agent-tracing](<https://devfeed.tech/tags/agent-tracing.md>), [agents](<https://devfeed.tech/tags/agents.md>), [alert](<https://devfeed.tech/tags/alert.md>), [automate](<https://devfeed.tech/tags/automate.md>), [can](<https://devfeed.tech/tags/can.md>), [conversations](<https://devfeed.tech/tags/conversations.md>), [costs](<https://devfeed.tech/tags/costs.md>), [evals](<https://devfeed.tech/tags/evals.md>), [llm](<https://devfeed.tech/tags/llm.md>), [otel](<https://devfeed.tech/tags/otel.md>), [send](<https://devfeed.tech/tags/send.md>), [sentry](<https://devfeed.tech/tags/sentry.md>), [spans](<https://devfeed.tech/tags/spans.md>), [things](<https://devfeed.tech/tags/things.md>), [tracing](<https://devfeed.tech/tags/tracing.md>), [triage](<https://devfeed.tech/tags/triage.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

Sentry Agent Tracing links prompts, model calls, tool executions, handoffs, and app spans in traces. The excerpt presents five uses: export production conversations as eval records with inputs, outputs, cost, tokens, and tool errors for scoring in Braintrust, Langfuse, promptfoo, or Arize Phoenix; use a daily Claude scheduled task with Sentry's MCP to review sampled successes and failures and file missing Linear tickets, or run a similar prompt via cron or GitHub Actions; trace Vercel AI SDK calls in a Next.js app to inspect estimated per-model and per-conversation costs and errors; use a CLI script to create an eight-widget spend dashboard and hourly threshold and anomaly alerts, with estimated cost derived from token counts in standard gen_ai spans; and add Sentry as a destination in an existing OpenTelemetry pipeline, keeping the other destination. The OTel example uses Next.js and @vercel/otel, though the text says the approach also works in other environments. Recipes assume an agent sends traces to Sentry; costs are described as estimates.

## Source excerpt

Five Sentry Agent Tracing recipes: turn agent conversations into evals, automate triage, track LLM costs, alert on spend, and send OTel spans to Sentry.