Harnesses

Datadog introduces online experiments for AI agent observability

December 1, 2026 · 3 min read

Also published in Português (Brasil)

Computer screen displays "vibe vibe coding" text
Bernd 📷 Dittrich / Unsplash

Datadog has expanded its Agent Observability platform with a new feature called Online Experiments. This addition allows engineering teams to compare different versions of AI agents using real production traffic, reducing reliance on predefined evaluation datasets. The feature integrates agent evaluation scores with operational metrics such as latency, token consumption, execution costs, and error counts to help teams verify whether changes to models, prompts, retrieval strategies, or tools genuinely improve agent performance.

The release addresses a growing challenge in agent development where changes that perform well in controlled tests may behave differently when facing unpredictable user requests. By combining controlled experiments, production telemetry, and execution traces, the platform provides teams with insights into final outcomes and the behavioral details behind them. While offline evaluation remains a key part of development, its representativeness depends entirely on the datasets and scoring criteria used. New user workflows, unexpected requests, and changes in tool responses can expose defects that existing test cases never anticipated.

Online experiments address this gap by evaluating agent behavior based on real user interactions. Teams can compare a control version with a modified variant by randomly assigning production traffic between them, which mitigates the impact of differences in user requests. This approach reflects agent performance under actual workloads more accurately and helps identify new scenarios that can be added to offline regression datasets. The platform integrates Agent Observability evaluators with the Experiments feature, allowing teams to compare evaluation scores alongside standard operational metrics.

Teams can track execution duration, token usage, estimated costs, and workflow errors while assessing answer quality, accuracy, and completeness. Feature flags manage traffic allocation, enabling engineers to expose a small subset of users to a change before a full release. This is critical because optimizations rarely come without trade-offs; for instance, a cheaper model might require more retries, while a revised retrieval strategy could improve evidence quality but increase execution time.

Datadog also links experiment results to individual agent execution traces. Engineers can inspect tool calls, input parameters, and return values to understand why a variant performs differently. In an example experiment comparing GPT-5.6 Luna and GPT-6 Luna with evenly split traffic, a large model evaluator scored investigation quality from one to five, considering accuracy, completeness, and evidence support. The results showed the new model had an estimated cost reduction of 44.3%, with quality scores remaining close at 3.84 and 3.86 respectively.

However, operational results revealed potential issues. The new model showed increased execution duration and estimated workflow errors, though wide confidence intervals prevented confirmation of a clear regression. Trace inspection found the new model more frequently provided invalid tool parameters, though it usually recovered after retries. This issue was difficult to capture in overall quality scores. Datadog used this finding to improve tool handling logic before proceeding with the model change, and the failed calls provided candidate cases for new offline regression tests.

Other tools like LangSmith and Langfuse offer agent tracing and evaluation, while platforms like LaunchDarkly support controlled feature releases. Datadog’s approach connects these concerns within its existing observability ecosystem, linking evaluation results directly with production experiments and execution evidence. The core philosophy is that online experiments create a feedback loop between production behavior and development testing, where unexpected online failures become new regression test cases, and fixes are later validated through experiments. This shift moves focus from passing predefined evaluations to confirming better performance in real environments, making production experiments potentially as important as traditional software testing for agent engineering.