agent-observability-online-experiment

Installation
SKILL.md

Set up an online experiment on an LLM application

An online experiment splits live traffic between a control and a treatment version of an LLM application. A Datadog feature flag assigns each subject to a variant, and an Agent Observability evaluation score (plus cost and token usage) measures the outcome. This skill walks through the whole setup, from the flag to starting the experiment.

Online experiments for Agent Observability may require the feature to be enabled for the user's organization. If any step reports the feature is unavailable, tell the user to contact their Datadog representative rather than retrying.

Skill argument

$ML_APP is optional and supplies the value for the experiment's ml_app tag. For example, invoking this skill with checkout-assistant as the argument creates an experiment tagged with agent-observability and ml_app:checkout-assistant.

If the argument is omitted, empty, or whitespace-only, omit the ml_app tag entirely; do not send an empty ml_app: tag or infer its value from the application. Application and metric discovery still determines the ml_app used for instrumentation and metric filters. The agent-observability tag is required regardless of the argument.

When to use this skill

  • The user wants to test a change (prompt, model, retrieval strategy, tool set) on real traffic rather than a fixed dataset.
  • The user has a change on a branch and wants to know whether it is better, cheaper, or both in production.
  • The user wants an experiment whose metrics come from Agent Observability evaluations, token counts, or cost.
  • The user starts from a Datadog managed prompt, for example Run an online experiment on version 3 of managed prompt checkout-assistant (ID: <uuid>). Reuse its managed feature flag. See Start from a managed prompt.
  • The user tested a change in an offline experiment and now wants to test the same change on live traffic, for example Start an online experiment to test the code changes from offline experiment <experiment-id>. See Start from an offline experiment.
Installs
214
GitHub Stars
186
First Seen
Oct 8, 2026