DEV Community

Alex Morgan
Alex Morgan

Posted on • Originally published at saaswithalex.pages.dev

Tracing AI Agents: The Real Cost Is Not in the Trace

A 50-developer team using LangSmith Plus incurs $23,400 per year in subscription fees — 50 seats × $39/seat/month × 12 months — before counting a single trace overage. That's the seat tax for collaborative debugging on one of the most popular agent observability platforms. It's also the kind of number that should make you treat tracing AI agents as a FinOps problem first and a debugging problem second.

Agent tracing captures the full execution path — LLM calls, tool invocations, sub-agent runs — as a hierarchical span tree with timing, token counts, cost, and inputs/outputs, as Spanlens describes it. That sounds straightforward until you realize every vendor bills on a different atomic unit, those units explode non-linearly with multi-step complexity, and the forensic retention you need to debug production failures sits behind the most expensive tiers. The result is a pricing structure that punishes the exact workflows you adopted observability for.

The Unit Fragmentation Problem

Every observability vendor counts something different, and that difference is where budgets break. Langfuse bills on "units," LangSmith on "traces," Kubit on "traces" (defined differently), Oodle on "spans" (but actually charges per gigabyte), and Tracium on "traces" (yet another definition). These aren't synonyms. They're fundamentally different billing primitives that scale at different rates against the same workload.

Langfuse, an open-source LLM observability platform for tracing, evaluating, and monitoring AI applications, bills on units rather than conversations. For agentic workloads with many spans and tool calls, unit consumption scales non-linearly and can exceed conversation-count estimates by orders of magnitude. A simple LLM application with one model call per request generates roughly one trace per request, per Langfuse's pricing analysis. A single RAG pipeline query can generate five or more traces, per LangSmith's pricing analysis. The multiplier effect means a team that estimates "10,000 conversations per month" might actually consume 50,000 to 100,000 billable units when agents chain tool calls, retrieval steps, and evaluation artifacts.

Kubit takes a different approach, billing at $0.0003 per trace and defining a trace as a single execution path from user request to agent resolution that may include many spans or events. That sounds cleaner — one conversation, one billable unit — but it shifts the cost risk to volume rather than complexity. Oodle prices agent traces from $10 per million spans based on an assumed 35 KB per span, with customer agent spans commonly varying between 20 KB and 30 KB. Its public calculator, however, charges $0.30 per gigabyte ingested. The gap between the headline span price and the actual byte-based charge is where teams get surprised.

Here's the core issue: span payload variability makes vendor-stated unit economics meaningless for real agentic traffic. A classification call might produce a 20 KB span. A research run with full tool outputs and context windows can hit 250 KB. When a million spans can mean anywhere from 20 GB to 250 GB of ingestion, the "per span" or "per trace" price is a marketing number, not a budget forecast.

Tool Billing Unit Entry Price Free Tier Volume Target Audience
Langfuse Units (spans + observations + evals) $29/mo (Core) 50,000 units/mo Open-source teams wanting self-host option
LangSmith Traces + per-seat $39/seat/mo (Plus) 5,000 traces/mo LangChain/LangGraph ecosystem teams
Kubit Traces (full execution path) $0.0003/trace 100,000 traces/mo Product analytics teams wanting session-level data
Tracium Traces $29/mo (Developer) 5,000 traces/mo Teams wanting one-line integration
Oodle Spans / GB ingested $0.30/GB ingested Teams concerned with payload size variability

Per-Seat vs. Per-Usage: The Predictability Tradeoff

Per-seat billing penalizes collaboration but offers linear, predictable scaling. Per-usage billing enables cheap starts but creates bill-shock risk when agentic span counts grow unpredictably. There's no free lunch here — just different ways to pay.

LangSmith's per-seat model is the most predictable for budgeting. A 50-developer team on LangSmith Plus incurs $23,400 per year in subscription fees — 50 seats × $39/seat/month × 12 months. The math is transparent. You know your seat cost. You can estimate your trace volume. The risk is that every team member who needs trace access — developers, QA engineers, product managers, data scientists running evals — adds $39/month to the bill.

Langfuse's per-usage model tells a different story. Its four cloud tiers — Hobby (Free), Core ($29/mo), Pro ($199/mo), and Enterprise ($2,499/mo) — all include unlimited users with no per-seat charges on paid plans. A five-person team on Langfuse Core pays $29/month total. The same team on LangSmith Plus pays $195/month before overages. That's a 6.7x difference at the seat level alone.

But here's the trap: Langfuse's 10x larger free tier (50,000 units vs. LangSmith's 5,000 traces) isn't an advantage for agentic teams. It normalizes unit-based billing just as agentic span explosion makes unit costs unpredictable. The free tier feels generous because it's measured in units that sound like traces. When your agents start chaining tool calls and generating dozens of spans per conversation, those 50,000 units evaporate faster than you'd expect from a "10x larger" tier. The per-seat pricing Langfuse undercuts actually offers more predictable scaling for collaborative debugging — you're paying for people, not for a metric you can't forecast.

Tracium sits in the middle with a hybrid model: free tier at 5,000 traces/month, Developer at $29/mo for 50,000 traces, Startup at $99/mo for 200,000, and Scale at $299/mo for 1,000,000. The integration story — a single line of code wrapping your LLM calls — is the core differentiator. But the trace-based billing inherits the same unit-fragmentation problem: if your agent makes ten tool calls per conversation, your "trace" count depends entirely on how Tracium defines trace boundaries.

Retention: The Hidden Multiplier

Short retention keeps costs down but can't catch slow-burn failures. Long retention enables forensic analysis but sits behind tiers costing 6–7x more than entry-level plans. This is where the pricing structure actively works against the debugging workflows you need.

Langfuse's retention tiers tell the story clearly. Hobby gives you 30 days. Core extends to 90 days. Pro jumps to 3 years. Enterprise also offers 3 years but adds custom volume pricing and a dedicated engineer. The jump from Core ($29/mo) to Pro ($199/mo) is a 6.9x price increase — and the primary functional difference is retention length and compliance certifications (SOC 2 Type II, ISO 27001, HIPAA). You're paying nearly 7x more not for more tracing capacity — both tiers include 100,000 units/month — but for the ability to look back far enough to debug real failures.

LangSmith's retention model is even more aggressive. The default is 14 days on both Developer and Plus tiers. Extended retention to 400 days is available at double the overage rate: $5.00 per 1,000 traces vs. If you want to investigate a regression that appeared three weeks ago, the standard retention window has already purged your evidence.

This matters because AI agents fail silently. They produce confident, well-formatted, plausible wrong answers with no errors, no bad status codes, making standard observability insufficient for detecting production failures. A hallucination returns HTTP 200. A run that took fourteen needless tool calls looks identical to a clean one. The failures that matter most — a tool retrying against a rate-limited API, error messages bloating the context window, an agent giving up mid-conversation — don't throw exceptions. They produce worse, slower, or more expensive answers that only become visible when you compare current behavior against historical patterns. Without long retention, you can't see those patterns.

If you're building a logging strategy for production agents, the retention question should drive your tier selection more than any feature checklist. A tool that gives you beautiful trace waterfalls but purges them in 14 days is a debugging tool for today's bugs, not next month's regressions.

Open Source vs. Infrastructure Dependency

Langfuse remains MIT-licensed after ClickHouse acquired it in January 2026, allowing teams to fork, embed, or self-host without commercial obligations. That's the promise. The reality is more complicated.

The acquisition reshapes self-hosting economics because Langfuse is built on ClickHouse. The optimal self-hosted deployment runs on the acquirer's database, creating infrastructure dependency despite the permissive license. You can fork the code. You can modify it. You can run it without paying Langfuse a dime. But your self-hosted deployment still depends on ClickHouse as its storage backend — and ClickHouse is now the same company that owns Langfuse. The open-source license promises zero lock-in, but post-acquisition infrastructure dependency creates vendor risk anyway.

This tension matters for teams choosing between specialized agent observability tools and cloud-native unified stacks. On one side, you have dedicated tools like Langfuse, LangSmith, Braintrust, Arize Phoenix, and others — each offering deep agent-specific diagnostics but adding another tool to an already fragmented stack. On the other side, cloud providers are pushing to absorb agent tracing into existing infrastructure.

Amazon Bedrock AgentCore now delivers unified observability by default for new agents created on or after July 20, 2026, routing all traces, prompts, structured logs, and standard output to a single per-agent CloudWatch log group. If you're already on AWS, this reduces tool sprawl by embedding traces into your existing log infrastructure. No new SDK to initialize. No separate dashboard to check. But you're trading agent-specific diagnostic depth for infrastructure convenience — CloudWatch log groups may lack the high-cardinality cross-trace debugging that complex multi-agent systems require.

The tradeoff is real. Specialized tools give you span trees, critical path analysis, evaluation loops, and prompt versioning. Cloud-native stacks give you unified telemetry, existing IAM policies, and no new vendor relationship. Your choice should depend on whether your debugging bottleneck is "I can't see what my agents are doing" (specialized tools help) or "I have too many dashboards and can't correlate agent behavior with infrastructure events" (cloud-native stacks help). For a deeper comparison of specialized observability tools and their failure-detection capabilities, our AI agent observability comparison breaks down where each tool excels and where it falls short.

Regulatory Compliance: When Traces Aren't Evidence

Here's a tension most engineering teams haven't confronted: automated AI-powered diagnostics are making observability smarter, but regulators are demanding evidence that smart automation cannot provide.

Scale AI's Insights Generator improved agent performance by +30.4 percentage points in a 90-minute controlled study, compared to +16.2 points for engineers using Claude Code with subagents. The tool reads across thousands of traces to find failure patterns — exactly what teams need when manual trace review doesn't scale. Comet Opik's Diagnostics takes a similar approach, using AI to read traces and surface failure mechanisms rather than just flagging anomalous individual runs.

But here's the regulatory problem: OpenTelemetry spans provide visibility into AI agent execution but are not admissible as regulatory evidence under EU AI Act Articles 9 and 13 because they constitute self-reported telemetry rather than independent, immutable audit trails. Your infrastructure wrote those spans. Your backend stores them. Your tooling queries them. From a regulatory standpoint, the system is reporting on itself — and that's not evidence.

The regulatory landscape is tightening fast. EU AI Act Article 50 transparency obligations apply from August 2, 2026, requiring AI agents that directly interact with natural persons to disclose their artificial nature and the person on whose behalf they act. The EU Digital Omnibus, signed on July 8, 2026, defers high-risk AI obligations to December 2, 2027, but leaves Article 50 transparency requirements enforceable from August 2, 2026. In the US, Illinois's Artificial Intelligence Safety Measures Act, enacted July 6, 2026, requires frontier AI developers to undergo annual independent third-party audits, with audit requirements taking effect January 1, 2028. Meanwhile, China's Implementation Opinions on Intelligent Agents took effect on July 15, 2026, prompting ByteDance Doubao and Alibaba Qwen to shut down consumer agent features rather than rebuild for compliance.

The implication for tracing is structural. Your observability platform can tell you what happened. It cannot prove it to a regulator. Self-reported telemetry, even when analyzed by AI, is not admissible evidence. If you're building agents that fall under these jurisdictions — and most consumer-facing agents will — you need to start thinking about independent, immutable audit trails alongside your tracing infrastructure. That's a separate system with different requirements: append-only storage, third-party verification, and evidence standards that no observability vendor currently meets. For teams thinking through the broader governance implications, our analysis of prompt tracing cost, portability, and governance shifts covers how observability platforms are absorbing governance functions and what that means for vendor selection.

Decision Framework: What Actually Matters

Stop evaluating tracing tools by feature checklists. Start evaluating them by the billing unit that will dominate your cost trajectory and the retention window that will determine your debugging effectiveness. Here's the decision framework I'd use:

1. Map your span economics before choosing a vendor. Export one representative day of agent traffic. Measure actual span sizes. Convert every candidate plan into dollars per gigabyte ingested and dollars per session retained. If your spans average 30 KB, Oodle's $0.30/GB ingestion pricing is straightforward. If they average 150 KB because you're capturing full tool outputs and context windows, the same plan costs 5x more for the same span count. The vendor's headline price is irrelevant until you know your payload distribution.

2. Choose retention based on your failure mode, not your budget. If your agents fail silently — and they will — you need enough retention to compare current behavior against historical baselines. 14 days won't catch a slow-burn regression. 30 days might. 90 days probably will. Three years is forensic. Pay for the retention that matches your incident detection timeline, not the tier that fits your current monthly budget.

3. Treat the billing unit as a FinOps decision. Per-seat pricing (LangSmith) is predictable but penalizes cross-functional collaboration. Per-usage pricing (Langfuse, Kubit, Tracium) enables cheap starts but creates bill-shock risk. If your team is small and stable, per-seat is simpler. If your team is large and collaborative, per-usage with unlimited seats may be cheaper — but only if you can forecast your unit consumption, which most teams can't for agentic workloads.

4. Evaluate the open-source exit strategy honestly. Langfuse's MIT license means you can self-host. But self-hosting on ClickHouse means you're still dependent on the acquiring company's database. If open source is your reason for choosing Langfuse, ask whether you'd still self-host if ClickHouse changed its own pricing or licensing terms. The answer determines whether the open-source advantage is real or theoretical.

5. Don't conflate observability with compliance. Your tracing tool shows you what happened. It cannot prove it to a regulator. If you're operating under EU AI Act jurisdiction, Illinois's audit requirements, or China's agent governance framework, you need a separate compliance layer with independent, immutable audit trails. Budget for both.

The teams that win with agent tracing aren't the ones who pick the "best" tool. They're the ones who understand which billing unit dominates their cost curve, which retention window matches their failure modes, and which compliance gaps their observability platform can't close. Everything else is marketing. The question I'd ask before signing up for any tracing platform: what's your cost per gigabyte ingested at my actual span payload size, and what's your retention window at the tier I can afford? If the vendor can't answer both questions with straight math, keep looking.


Originally published at SaaS with Alex

Top comments (0)