Skip to main content
reopt Handbook
reopt Handbook
LLMOps and AgentOps in Production

Architecture and Release

Ch1. System ArchitectureCh2. Versioning and ReleaseCh3. Evaluation Framework

Operational Reliability

Ch4. Online GuardrailsCh5. Observability and SLOsCh6. Cost and Latency Optimization

Growth and Response

Ch7. Experiment OperationsCh8. Incident Management Runbook

Verification

Verification ReportVerification ArchiveUpdates
Handbook›LLMOps and AgentOps›Ch5. Observability and SLOs
한국어English

Ch5. Observability and SLOs

Collect model, tool, and policy execution as traceable signals and operate them through SLOs

Key takeaways

  • The real observability standard is time to reconstruct causality, not log volume.
  • Capture required signals across request, model, agent, tool, policy, and trace fields so any run is reproducible from its trace_id.
  • Define SLIs and SLOs with explicit targets (availability 99.9%, quality ≥ 95%, p95 latency ≤ 4s, policy violation ≤ 0.2%) and track error-budget burn.
  • Align internal traces with OpenTelemetry GenAI conventions and OWASP AOS (Instrumentable, Traceable, Inspectable), keeping an adapter layer since both are still evolving.
  • Operate a trace-to-eval loop: debug traces, grade them with a rubric, promote repeated failures into datasets, and re-grade online samples to detect drift.

If you cannot quickly reconstruct why a problem happened, observability is not sufficient.
The LLMOps standard is not log volume. It is time to reconstruct causality.

Required Signals

AreaRequired Fields
Requestrequest_id, tenant_id, user_segment, intent, session_id
Modelmodel_id, prompt_version, token_in/out, cached_tokens, reasoning_mode
Agentagent_id, run_id, handoff_from/to, state_version
Tooltool_name, tool_call_id, mcp_server, latency_ms, status, side_effect
Policypolicy_pack, guardrail_name, decision, violation_type, approval_id
Tracetrace_id, span_id, parent_span_id, eval_score, dataset_version

Minimal Trace Schema Example

{
  "trace_id": "tr_01hx9...",
  "run_id": "run_20260517_001",
  "tenant_id": "acme-enterprise",
  "model": {
    "provider": "openai",
    "model_id": "gpt-5.4-mini",
    "prompt_version": "p-20260517.2",
    "input_tokens": 3840,
    "cached_input_tokens": 2560,
    "output_tokens": 620
  },
  "tool_calls": [
    {
      "tool_call_id": "tool_01",
      "mcp_server": "github-readonly-prod",
      "side_effect": false,
      "status": "ok"
    }
  ],
  "approval": {
    "approval_id": "appr_01",
    "decision": "approved"
  }
}

SLI/SLO Definitions

Availability SLI=Successful RequestsTotal Requests\text{Availability SLI} = \frac{\text{Successful Requests}}{\text{Total Requests}}Availability SLI=Total RequestsSuccessful Requests​ Quality SLI=Successful TasksEvaluated Tasks\text{Quality SLI} = \frac{\text{Successful Tasks}}{\text{Evaluated Tasks}}Quality SLI=Evaluated TasksSuccessful Tasks​
SLO ItemExample Target
Availability SLO99.9%
Quality SLO>= 95%
p95 Latency SLO<= 4 seconds
Policy Violation SLO<= 0.2%
Error Budget=(1−SLO)×Total Requests\text{Error Budget} = (1 - \text{SLO}) \times \text{Total Requests}Error Budget=(1−SLO)×Total Requests

Dashboard Priorities

  1. SLO status and burn rate
  2. Failure distribution by model and prompt
  3. Policy block and approval ratios
  4. Top-cost tenants and features

Tracing Practice

  • Require request-level distributed traces (trace_id).
  • Separate model-call, tool-call, and policy-decision spans.
  • Use 100% sampling for high-risk paths and adaptive sampling for normal paths.

OWASP Agent Observability Standard (AOS)

OWASP AOS is an open project for standardizing observability in agent systems. As of May 2026, it is safest to treat it as work in progress. It is organized around three axes:

AxisRequirementImplementation Standard
InstrumentableExpose agent and tool calls as instrumentable unitsNative MCP + A2A instrumentation
TraceableTrace the full request/response pathOCSF plus OTel integration
InspectableMake agent components auditableAI BOM based on CycloneDX, SWID, SPDX

AOS Adoption

OWASP AOS complements OpenTelemetry GenAI Semantic Conventions. OTel focuses on runtime tracing, while AOS focuses on agent-level audit and security observability. Since AOS is still moving quickly, version your internal trace schema and keep an adapter layer for breaking changes.

2026 Observability Tooling

ToolVersionNotes
Langfusev4.0.0MIT open source, LLM-as-a-Judge/experiments/playground open, OTel native
LangSmith FleetCurrentRebranded from Agent Builder, subagent state cards, LangSmith Fetch CLI, unified cost view, experiment baseline pinning
Arize Phoenixv13.0.3CLI support for Claude Code/Cursor integration, LDAP auth, open source
Braintrust Loop AICurrentNatural-language scorer generation, Java/Go/Ruby/C# SDKs, OTel native, SOC 2 Type II

OpenTelemetry GenAI Semantic Conventions

OpenTelemetry GenAI semantic conventions are in Development status as of May 2026.

ItemCurrent Status
Events (input/output)GenAI input/output events defined
Metrics (tokens/latency)GenAI operation metrics defined
Model spansTechnology-specific conventions for OpenAI, Anthropic, AWS Bedrock, Azure AI Inference, and others
Agent spansGenAI agent/framework spans included
MCP spansMCP semantic conventions included
OWASP AOS relationshipAOS Traceable axis references OTel GenAI conventions
Vendor adoptionOTel links are expanding across Langfuse, Phoenix, Braintrust, NeMo Guardrails, and others

OTel Adoption

Mapping OTel-compatible fields into an internal canonical schema makes vendor migration and cross-service traces easier. When using the latest GenAI convention, record whether OTEL_SEMCONV_STABILITY_OPT_IN is used and which field version is emitted.

Trace to Eval Operating Loop

StepOutput
Debug traceReconstruct which model/tool/handoff/approval ran in a single run
Trace gradingScore tool choice, handoff timing, and guardrail activation with a structured rubric
Dataset promotionStore repeated failure traces as regression/eval datasets
Online samplingApply the same grader to sampled traces after release to detect drift

Operating Standard

Mean latency is often not useful for operations. Default to p95/p99, top-tenant segments, and policy-failure views.

Baseline and Sources

ItemBaseline DateRecheck ByPrimary Source
OTel GenAI semantic conventions2026-05-172026-06-16https://opentelemetry.io/docs/specs/semconv/gen-ai/
OWASP AOS2026-05-172026-06-16https://aos.owasp.org/aos/
Agents SDK tracing2026-05-172026-06-16https://developers.openai.com/api/docs/guides/agents/integrations-observability

Related docs

Verification Report

Structure, link, metric, and logic verification for LLMOps and AgentOps in Production

Updates

Changelog for LLMOps and AgentOps in Production

Ch13. Observability and Deployment

Enterprise Eve Agent Development · Operate Eve with OpenTelemetry, Workflow tags, deployment checklists, health checks, and production runbooks.

Observability and Evaluation

Vercel Enterprise AI Platform · Connect traces, prompts, tool calls, quality scores, latency, and cost.

Ch4. Online Guardrails

Design real-time policy enforcement, blocking, fallback, and human approval loops

Ch6. Cost and Latency Optimization

Manage unit cost and response time without sacrificing quality

On this page

Required SignalsMinimal Trace Schema ExampleSLI/SLO DefinitionsDashboard PrioritiesTracing PracticeOWASP Agent Observability Standard (AOS)2026 Observability ToolingOpenTelemetry GenAI Semantic ConventionsTrace to Eval Operating LoopBaseline and Sources