# See what your agent is doing

> Trace, debug and evaluate an agent in production.

- Category: Build agents · Difficulty: Intermediate
- Estimated monthly cost: $0–$29/mo. Langfuse Hobby free (50k units/month), Core $29 (100k units). Open source and self-hostable.
- Model: Any
- MCP servers: none
- Last checked: 2026-10-21 · Hands-on tested: no (built from official docs)
- Canonical: https://getagentloadout.com/loadouts/agent-observability/ · JSON: https://getagentloadout.com/data/loadouts/agent-observability.json

## Tools
- [Langfuse](https://langfuse.com): Open-source tracing, evals and prompt management for LLM apps and agents. Pricing: Hobby $0/mo (50k units/month, 2 users); Core $29/mo (100k units/month, unlimited users); Pro $199/mo (Unlimited history, high rate limits; extra units $8 per 100k). Source: https://langfuse.com/pricing

## Starter prompt

```
Add Langfuse tracing to every model call and tool call in this agent. Tag traces with user id and version. Then write an eval script that replays 20 saved traces and reports regressions.
```

## Config (env)

```bash
LANGFUSE_PUBLIC_KEY=
LANGFUSE_SECRET_KEY=
LANGFUSE_HOST=
```

## Setup steps
1. Add keys.
2. Instrument model and tool calls.
3. Review failing traces weekly.

## Why this works
You can't fix what you can't see; traces turn vague bug reports into concrete steps.

## Watch out
Don't log personal data you don't need.

## Related loadouts
- [Production agent in TypeScript](https://getagentloadout.com/loadouts/ts-production-agent/)
- [Build your own MCP server](https://getagentloadout.com/loadouts/build-mcp-server/)
- [Deep research without code](https://getagentloadout.com/loadouts/deep-research-no-code/)

Some links may be affiliate links; it never affects rankings. Rankings are never for sale.
