A hands-on guide to tracing AI agents with OpenTelemetry, span design, and SDK-level instrumentation for production systems.
Agent TracingLong read

Defining SLOs for Multi-Step AI Agent Pipelines

Outcome-based SLOs catch agent failures that infrastructure metrics miss entirely.

· 9 min read
Cover illustration for “Defining SLOs for Multi-Step AI Agent Pipelines”
Agent Tracing · October 27, 2026 · 9 min read · 1,961 words

Traditional error monitoring fails for AI agents because a successful request does not prove a correct answer, an authorized action, or a completed workflow. Defining SLOs for multi-step AI agent pipelines therefore starts with the business outcome. Availability and latency still need to be measured, but only outcome-based measurements show failures that leave infrastructure metrics green.

Why does an agent look fine in logs but still fail the user?

Consider a support escalation agent that quickly returns a 200 code with zero logged errors, yet routes the escalation to the wrong team and exposes a customer record. Its infrastructure indicators show a successful request. Its user received an incorrect and unsafe result. The gap is structural, because infrastructure metrics describe execution rather than whether the action met the workflow’s requirements.

Agent pipelines combine probabilistic and deterministic steps into a governed chain. A fluent response can be fabricated, retrieval can return outdated or unauthorized material, and a successful tool call can update only half a record. A fallback model can preserve latency while quality falls below the workflow’s validated threshold. None of these failures requires a crash. A wrong answer at step 10 may originate in bad retrieval at step 1, leaving each component apparently healthy while the outcome deteriorates.

What the SLI/SLO/SLA distinction means when the “service” is an agent pipeline

An SLI is a measured indicator, usually the ratio of good events to eligible events. An SLO sets its target over a defined window and population. An SLA is a contractual commitment with consequences, separate from the operational objective. These definitions remain intact for agent pipelines. The extension concerns what qualifies as good.

Eligibility must be fixed before results are observed, since excluding slow or wrong runs afterward manipulates the rate. Component indicators must also remain separate from the composite workflow indicator so that failures remain diagnosable. Quality cannot offset a critical policy violation. A good event may require correct workflow acceptance, authorized retrieval, an approved model, structured output, successful validation, complete tool actions, timely human approval, delivery to the target system, and reconstructable evidence. Receipt of a response alone no longer qualifies.

Starting from the business outcome — how to define the measurement boundary for an agent pipeline

A user-visible workflow with a defined terminal state provides a practical starting point. For a customer support escalation agent, that workflow includes classifying the request, retrieving policy documents, and either sending a response or routing the case to a human. The endpoint is the sent response or routed escalation, which is the downstream action the objective must govern.

To establish that boundary, define when the workflow starts, what constitutes valid completion, which exclusions are legitimate, and who receives the result. Identify the irreversible action the agent can take. Then distinguish completion from user cancellation, policy rejection, business rejection, platform failure, and timeout. A correctly blocked prohibited request is a governance success rather than an availability failure, while silent abandonment is neither a successful completion nor a governed rejection.

Interactive questions, long-running research, and high-risk autonomous actions each need their own populations and objectives, even when they use the same pipeline. Segmentation by workflow, channel, and risk tier preserves those distinctions. Once the boundary is explicit, the next decision is which measurements describe acceptable behavior within it.

The seven measurement dimensions a complete agent SLO set must cover

Outcome success measures how many eligible runs reach a valid terminal state. Its component indicators separate completion from cancellation, rejection, platform failure, and timeout because each calls for a different response. End-to-end latency measures the user’s wait, including retrieval, tools, retries, and required approvals. Model latency alone misses that wait. Interactive workflows may need separate objectives for the first useful response and the completed cited answer, while asynchronous workflows may measure when work is ready for review or the time from approval to committed action.

Task quality measures correctness against the workflow’s own rubric. A retrieval-based assistant needs grounded-answer and citation checks, while a tool-using agent needs valid-action and human-correction measurements. The evaluator must be versioned and calibrated against human review. A model-based judge is itself a measurement dependency. Policy and safety enforcement separately cover approved models, permitted execution zones, authorized sources, tool allowlists, and required approvals, with critical prohibitions treated as hard invariants.

Audit and evidence completeness measure reconstructability. Required evidence includes initiating identity, workflow and model versions, source references, tool calls, policy decisions, approvals, final status, and timestamps. Capacity and saturation measure queue wait, token throughput, GPU/CPU saturation, context-size distribution, and rejected work by priority. These signals should precede a full outage. They give teams time to defer batch work, add serving replicas, or use an approved smaller model, and to report any quality lost as a result.

Recovery and degraded operation complete the set. Their indicators include detection time, failover time, retry success, stuck-run age, and correct completion through approved fallbacks. Degraded operation must remain visible as degraded operation. Across all seven dimensions, targets need calibration against the workflow’s baseline, and latency needs percentiles because averages conceal an unusable tail.

How correlated failure across pipeline stages breaks the product-of-uptime assumption

Multiplying stage uptime figures assumes independence that shared dependencies do not provide. One retrieval service can feed many workers, one stale index can contaminate downstream responses, and one permission revocation can affect every in-flight run using a tool. Consequently, five stages each reporting 99.5% availability do not establish the end-to-end outcome success rate implied by a simple product.

This architecture can cause correlated quality loss even when availability stays the same. An outdated retrieval index can return technically successful responses that no longer meet the answer rubric. Shared dependencies therefore need explicit identification during SLO design, while the governing SLI must measure actual end-to-end outcomes. Stage metrics still support diagnosis, but cannot substitute for that measurement. Producing it requires evidence of what each stage did and whether the workflow reached its intended terminal state.

What observability infrastructure a multi-step pipeline needs to produce trustworthy SLI measurements

Trace-level observability connects retrieval, model invocations, and tool calls into one end-to-end chain. OpenTelemetry provides a basis for representing these operations as child spans and is developing semantic conventions for agent telemetry. The trace must preserve the workflow’s hierarchy. Separate infrastructure dashboards, proprietary model traces, and evaluation results otherwise force teams to correlate timestamps manually, making measurement expensive and unreliable.

A useful trace records initiating identity and workflow version, retrieval calls and sources, tool arguments and results, model invocations and outputs, policy decisions, terminal state, and timestamps. Those fields connect the outcome to the steps that produced it. Missing evidence weakens both measurement and diagnosis. A completion signal without the required approval record, for example, cannot establish that the governed workflow succeeded.

Evaluations check whether the agent behaved correctly, and observability provides the evidence for that check. SLOs then define the operational threshold for acceptable behavior.

Choosing the right measurement window and alert cadence for agent quality SLOs

Once outcomes are measurable, the window determines how quickly deterioration becomes visible. Monthly quality windows can obscure a regression for weeks because bad answers need not produce acute failures. Weekly measurement is the recommended primary cadence for quality and windowed safety indicators. Daily drill-down reporting gives teams a closer look at high-consequence dimensions such as policy enforcement and audit completeness, while 24-hour moving-average alerts warn them sooner. Hard safety invariants apply at all times, and a breach triggers incident handling right away.

Drift velocity describes how quickly quality changes, so a score still above target can warrant investigation if it falls steadily. Escalation rate provides a faster proxy for customer-facing agents than retrospective answer review. The illustrative 2026 calibration range is 4–7% of total volume, with thresholds periodically checked against errors in the auto-answered tier. Below that range, the agent may be taking excessive risks, while above it the human queue may become overloaded.

For example, rising escalations with a stable error budget can reveal deteriorating service before conventional alerts respond. Error-budget burn likewise needs interpretation relative to the window, particularly when it accelerates over several days and becomes a release decision signal. These measurements become actionable only when a breach has an owner and a defined response.

Translating a breached SLO into a diagnosis — tracing a production failure back through the pipeline

A breached quality objective becomes more useful when its component indicators narrow the search. Falling grounded-answer pass rates with stable tool correctness point toward stale sources, unauthorized retrieval, or poor retrieval recall. When action correctness falls but answer quality stays the same, wrong arguments, partial writes, or tool timeouts may be the cause. Rising policy violations with stable completion suggest examining prompt changes or model versions outside the approved set, while rising escalations can indicate that user requests have drifted beyond the agent’s operating envelope.

Runaway loops require inspection of the trajectory. Sorting runs by step count and opening the worst offender can expose a repeatedly called tool or a planner that never emits a final action. Teams can set a clearer stopping condition or a hard step budget and measure its effect. When comparing releases, teams should also keep failure-mode breakdowns, because overall success can stay the same while tool-selection accuracy falls. Teams still need production measurements of these behaviors even when they have benchmark scores.

Every breach needs an owner and a response, including investigation, safe degradation, a release pause, or failover. An alert without that connection produces fatigue. Direct trace links should open the relevant span in the workflow the developer already uses, including team-chat alerts and coding-agent integrations. Keeping diagnosis and remediation in that environment is a reliability practice because the measurement must lead to a concrete fix.

An illustrative end-to-end SLO set for a multi-step customer support agent

A customer support triage agent classifies incoming requests, retrieves relevant policy documents, drafts a response or routes to a human, and records the outcome with evidence. Its governed terminal state is the sent response or routed escalation. Actual thresholds must come from the observed baseline and the workflow’s risk tolerance, with each objective assigned an owner and response.

For completed workflows, the SLI is the share of eligible runs reaching a valid terminal state, with an illustrative target of 99.0% over rolling 28 days. A breach calls for investigation of terminal-state categories and failed stages. For interactive latency, the objective is a completed cited response at the 95th percentile within 12 seconds over rolling 7 days. The trace distinguishes retrieval, tool, retry, and approval delays.

Grounded quality uses reviewed answers passing the workflow rubric, with an illustrative target of 97% in a weekly evaluated sample. A breach calls for a closer look at the quality components that are failing. Action correctness measures tool actions that need no rollback or human correction, with a target of 99.5% over rolling 28 days. That indicator directs attention to tool arguments, partial writes, and timeouts.

Permission enforcement is a 100% hard invariant that allows no unauthorized retrieval or tool access and is measured at all times. Any violation triggers incident handling immediately. Evidence completeness sets a target of 99.9% of governed runs with every required trace field over rolling 24 hours, and teams investigate missing fields as a reconstructability failure. Escalation rate has a bounded range that teams recalibrate from time to time and check against auto-answer errors and pressure on the human queue.

To cover all seven dimensions, this set also needs workflow-calibrated capacity and recovery objectives. Queue wait and rejected work can inform deferral, approved fallback, or added replicas, while failover time, stuck-run age, and correct fallback completion govern degraded operation. Hard invariants remain separate from every windowed allowance. The monitoring platform must connect these judgments to the intended workflow because the service being governed is the outcome delivered to the user.

Filed underAgent Tracing

More in Agent Tracing