Self-host your agent traces: setup_tracing lands OTel spans in your own Postgres
pritisinghhhh · x · 2026-11-23
Agent traces are your production data — shipping them to someone else's cloud to read them back is a strange default. Agno's setuptracing(db=...) lands every span in your own Postgres or ClickHouse:
- Built on OpenTelemetry, instrumentation via Arize's OpenInference
- Just two tables: traces and spans; query with SQL, not a vendor query language
- Sample code: PostgresDb for sessions, ClickhouseDb for traces, batchprocessing=True with maxexportbatchsize=512, forceflush() for immediate queryability
- Query APIs return totalspans, durationms, errorcount per trace
Core message: your data, your database — keep agent observability in your own infra.
More from coding & agent
- Agent failures are a map of your organization's undocumented knowledge — _AustinCalvert_ · 2026-11-23
- Building Linear inside Linear: a team of agents clones your own daily software — hargup13 · 2026-11-23
- Denmark releases fully open 120B agentic coding model Munin 2.0, free for commercial use — solyarisoftware · 2026-11-23
- Dev builds a Unix-like OS from scratch using Claude as orchestrator — brada · 2026-11-23
- rendra-mcp: open-source Context7-style doc server for internal runbooks with injection fencing — ConfidenceNew4559 · 2026-11-23
- Agent swarm tests apps like first-time users: 0/18 could split a bill, Claude Code fixed 9 issues — alexionreddit · 2026-11-23