Unified Open-Source Tracing and Evaluation for Agentic AI

Unified Open-Source Tracing and Evaluation for Agentic AI
10 mins
Category:
Tech
April 6, 2026

Unified Open-Source Tracing and Evaluation for Agentic AI

I’ve been thinking about agentic AI observability and evaluation less as a tooling problem and more as an architecture problem.

The question I care about is not:

  • What is the best tracing tool?
  • What is the best eval framework?

It is:

How do I build a system where tracing, evaluation, production feedback, and regression testing reinforce each other without creating overlapping sources of truth?

That shift in framing changes the entire design.

Instead of searching for one tool that “does everything,” I want a stack in which every component has a clear responsibility, every layer is replaceable, and the system improves continuously from real usage.

The architecture I’ve converged on is a unified, completely open-source tracing and evaluation stack for agentic AI systems.

It is built around a few simple ideas:

  • tracing should be infrastructure, not application logic
  • evaluation should consume trace evidence
  • different evaluation modes should stay distinct
  • deterministic checks should come before model-based judgment
  • production failures should become engineering assets
  • open source should preserve portability
  • frameworks should not overlap without a clear reason

This post explains the reasoning behind that architecture.

The architecture at a glance

At a high level, the system looks like this:

Agentic application
→ OpenInference instrumentation
→ OpenTelemetry Collector
→ Langfuse Backend
→ Langfuse UI + evaluation loops
→ continuous improvement back into regression testing

The application layer can be built with LangChain / LangGraph and include:

  • agents
  • LLM calls
  • tools
  • retrievers
  • sub-agents
  • MCP or external API calls

The tracing layer is intentionally simple:

  • OpenInference instrumentation captures GenAI semantics and structured traces
  • OpenTelemetry Collector handles transport, processing, redaction, batching, sampling, and routing
  • Langfuse Backend acts as the system of record
  • Langfuse UI provides exploration, analysis, and operational visibility

The evaluation layer is split into distinct modes:

  1. Pre-merge / offline regression
    • pytest
    • Langfuse datasets
    • deterministic scorers
    • Ragas metrics
  2. Nightly capability and safety
    • Inspect AI
    • Inspect Evals
    • sandboxed tasks
    • long-horizon behavior
    • red-team scenarios
  3. Online / production evaluation
    • sampled production traces
    • Langfuse evaluators and rules
    • monitors and alerts
    • human review

These all feed results back into Langfuse and eventually into a continuous improvement loop:

Production → Trace → Evaluate → Score → Review → Dataset → Regression Test → Fix

That loop is the real heart of the system.

1. Tracing should be infrastructure, not application logic

The first principle is that tracing should be part of the platform, not something every application developer has to think about while building business logic.

Agent developers should not have to care about a proprietary tracing backend every time they write:

  • a tool
  • a graph node
  • a retriever
  • a sub-agent
  • an approval step
  • an external call

They should write agentic code.

The system should take care of emitting structured telemetry through open standards.

That is why I prefer OpenInference instrumentation at the application layer.

It captures the semantics that matter in agentic systems:

  • LLM spans
  • tool spans
  • agent spans
  • retriever spans
  • structured trace attributes

And it emits telemetry in a form that remains compatible with the broader OpenTelemetry ecosystem.

That gives me a clean boundary:

  • the application emits structured telemetry
  • the transport and policy layer manages it
  • the backend stores and organizes it

Once that boundary is clean, the backend becomes replaceable.

That is a much healthier architectural position than coupling the application directly to an observability vendor.

2. OpenTelemetry should be the telemetry contract

The second principle is that the telemetry contract matters more than the specific backend.

That is why OpenTelemetry sits at the foundation.

I do not want application code hard-wired to one trace store. I want telemetry to move through a standard pipeline.

That is the role of the OpenTelemetry Collector.

The collector is not where agent semantics are created. It is where telemetry is governed.

Its responsibilities are operational:

  • receive OTLP traces and spans
  • redact sensitive data
  • sample traffic
  • batch spans efficiently
  • route or fan out to one or more backends

This is a crucial layer because it centralizes policy.

Instead of implementing redaction, sampling, or routing separately in every service, the collector enforces those rules once.

This also keeps the architecture vendor-neutral.

If I want to send the same telemetry to Langfuse today and another OTLP backend tomorrow, I can do that without rewriting the application.

That portability is one of the biggest advantages of using open telemetry standards properly.

3. Langfuse should be the single system of record

A platform becomes fragile when there are multiple competing sources of truth.

That is why I prefer Langfuse Backend as the single system of record.

I want one place to store and organize:

  • traces
  • sessions
  • scores
  • datasets
  • experiments
  • annotations
  • prompt versions

And I want the UI to sit on top of that same source of truth.

This is why I distinguish clearly between:

  • Langfuse Backend — the storage and orchestration layer
  • Langfuse UI — the interface for inspection, experimentation, monitoring, annotation, and prompt management

That distinction matters.

The backend is where structured evidence lives.

The UI is how engineers, reviewers, and evaluators interact with that evidence.

With that separation, the architecture stays conceptually clean:

  • traces are captured once
  • evaluation results are attached back to those traces
  • datasets are built from reviewed evidence
  • experiments and prompt versions remain connected to actual execution history

That creates continuity across development, testing, and production.

4. Evaluation should consume traces, not invent a parallel execution model

This is one of the most important design choices in the architecture.

I want evaluation to be a consumer of trace evidence, not a second system creating its own competing representation of execution.

The trace already contains the facts I care about:

  • what model was called
  • which tool was selected
  • what arguments were passed
  • what was retrieved
  • how many steps the agent took
  • where latency accumulated
  • what the final outcome was

That is enough evidence for many forms of evaluation.

So the role of an evaluator is simple:

look at the trace, judge the behavior, and attach scores back to the same system of record.

I do not want:

  • one system describing what the agent did
  • another system inventing a separate trajectory abstraction
  • a third system trying to reconcile the two later

That usually leads to duplication, ambiguity, and operational complexity.

The architecture is much cleaner when traces are the canonical execution record, and evaluations are annotations on top of that record.

5. Different evaluation modes should remain different

Not all evaluation is the same.

That sounds obvious, but many teams still try to force very different testing problems into a single framework.

I think that is a mistake.

A pre-merge regression test is not the same as a sandboxed capability evaluation.

And neither is the same as continuously scoring production traffic.

These are different questions:

Pre-merge / offline regression

This asks:

  • Did we break expected behavior?
  • Does the agent still satisfy core contracts?
  • Are tool calls valid?
  • Are deterministic quality thresholds still met?

This is where I want:

  • pytest
  • Langfuse datasets
  • deterministic scorers
  • Ragas metrics

Nightly capability and safety

This asks:

  • Can the agent perform broader tasks in a realistic environment?
  • Does it behave safely in more open-ended settings?
  • Can it handle long-horizon tasks?
  • Does it resist misuse or red-team scenarios?

This is where Inspect AI and Inspect Evals make sense.

Online / production evaluation

This asks:

  • How is the system behaving in the real world?
  • Are sampled traces healthy?
  • Are there regressions emerging in live traffic?
  • Which traces need human review?

This is where I want:

  • sampled production traces
  • Langfuse evaluators and rules
  • monitors and alerts
  • human review

I would rather use focused tools with clear responsibilities and connect them through shared data contracts than stretch one broad framework across all three modes.

6. Deterministic evaluation comes before model-based judgment

Another core principle: use code when code is enough.

If I can validate something deterministically, I should do that before reaching for an LLM judge.

Examples include:

  • tool schema validation
  • argument validation
  • policy checks
  • step budgets
  • side-effect constraints
  • exact-match outcomes
  • required sequence rules

This gives me evaluation that is:

  • cheaper
  • more repeatable
  • easier to debug
  • easier to trust

That is why in the regression layer I lean first on deterministic scorers and then use Ragas as the focused metric library.

I specifically like the discipline of using only Ragas for metrics rather than accumulating multiple overlapping scorer libraries. It reduces complexity and makes the evaluation layer easier to reason about.

LLM judges are still useful, but they should be used where judgment is genuinely required, not as the default answer to every evaluation problem.

7. Production failures should become engineering assets

This is probably the most important part of the architecture for me.

A bad production trace should not end as:

  • an alert
  • a dashboard screenshot
  • or a one-off debugging session

It should be:

  1. reviewed
  2. labeled
  3. attached to the relevant failure mode
  4. promoted into a dataset when meaningful
  5. turned into a regression case

That creates a real improvement loop.

Production teaches the test suite.
The test suite protects the next release.

This is where the value of unified tracing and evaluation becomes obvious.

A production trace is not just an operational artifact.

It is also a potential training example for engineering quality.

By storing trace evidence, review outcomes, scores, and datasets in one coherent system, you make learning from failures operationally practical.

That is what turns observability into improvement instead of just reporting.

8. Open source is not just a licensing preference — it is a portability decision

For me, “completely open source” is not just about principle or cost.

It is an architectural property.

I want the freedom to change:

  • the tracing backend
  • the judge model
  • the evaluation implementation
  • the deployment model
  • the retention strategy
  • the UI

without rewriting the agent itself.

That only works when:

  • contracts are open
  • layers are separable
  • responsibilities are clean
  • core workflows are self-hostable

Open source gives me leverage because it keeps the architecture modular.

If a component underperforms, I can replace it.

If operational requirements change, I can reconfigure it.

If my team wants more control over telemetry or evaluation, we can make those changes without rebuilding the whole platform.

That is why the combination of:

  • open standards
  • self-hosted components
  • replaceable layers

matters so much.

9. Avoid framework accumulation

The ecosystem has many strong eval frameworks.

That is not the problem.

The problem is what happens when too many of them occupy the same seat.

The question is not whether a framework is good.

The question is:

Does it own a responsibility that is not already covered?

If a new framework introduces another concept of:

  • traces
  • trajectories
  • datasets
  • scorers
  • test cases
  • execution results

without solving a genuinely new problem, I would rather not add it.

More tools do not automatically produce a better platform.

Clearer boundaries usually do.

That is why I prefer a stack where every component has exactly one reason to exist:

  • OpenInference instrumentation for GenAI semantics and tracing
  • OpenTelemetry Collector for telemetry governance and transport
  • Langfuse Backend for the system of record
  • Langfuse UI for operational visibility and workflow
  • pytest for regression execution
  • Ragas for metrics
  • Inspect AI / Inspect Evals for capability and safety evaluation

That is a coherent architecture.

It is easier to explain, easier to operate, and easier to evolve.

10. The continuous improvement loop is the actual product

If I had to summarize the architecture in one line, it would be this:

The goal is not just to observe the agent.
The goal is to build a system that gets better because it is observable.

That is what the continuous improvement loop is doing:

Production → Trace → Evaluate → Score → Review → Dataset → Regression Test → Fix

That loop is the real product of the architecture.

Everything else exists to make that cycle reliable.

When the loop works:

  • production generates evidence
  • evaluation converts evidence into judgment
  • review converts judgment into understanding
  • datasets preserve that understanding
  • regression tests operationalize it
  • the next release becomes safer and stronger

That is the kind of AI engineering platform I would want a team to build on.

It is:

  • modular
  • observable
  • testable
  • self-hosted
  • replaceable by design

And most importantly, it aligns tracing and evaluation into one coherent engineering system instead of treating them as disconnected tool choices.

Final thought

The architecture in the postx` is the result of this thinking:

  • open telemetry at the foundation
  • a single system of record
  • evaluation as a consumer of trace evidence
  • different harnesses for different evaluation modes
  • and a feedback loop that turns production behavior into regression protection

That is the platform shape I find most compelling for agentic AI.

Not because it has the most tools.

But because it has the clearest contracts.

‍

Reveal other articles

Explore more