At a glance
- Instrument with OpenTelemetry and the GenAI semantic conventions, and pin the convention version: the agent, tool and inference spans are all still at Development status and the GenAI repository has no tagged release [1][8].
- One trace per agent run: an
invoke_agentorinvoke_workflowroot, with inference,execute_tool, retrieval, memory and nested sub-agent spans beneath it [1][2][3]. - Message and tool content is opt-in in the conventions and off by default; production keeps metadata only or redacts at source, with full content in development and staging [3].
- Route all telemetry through an OpenTelemetry Collector you control, for redaction, sampling and routing, so backends stay swappable [11][14].
- Metrics are never sampled; traces use head sampling for volume plus tail sampling that keeps every error, escalation, guardrail hit, approval and costly run; audit events are a separate, unsampled record [9][10].
- Alert on SLO burn rates (fast and slow windows), plus cost anomalies and runaway loops, rather than on raw thresholds [18].
- Attach eval scores and user feedback to the span they judge with the
gen_ai.evaluation.resultevent, so quality and operations share one view [7]. - Set retention by record type: short for content, longer for metadata, and at least six months for high-risk system logs under the EU AI Act [21].
Scope and where it sits
This guide covers telemetry for agents: GenAI conventions, trace design, metrics, sampling, personal data, eval linkage, SLOs, dashboards, retention, audit and tooling. It sits in layer 10 of the reference architecture (Observability, evaluation and governance, plan section 4) and draws signals from every other layer, especially the gateway (layer 2), runtime (layer 4), model layer (layer 5) and tools (layer 8).
In the Anatomy of an AI Agent crosswalk it serves Clinical examination (tracing standards and the KPIs that prove value and safety), the Nervous system (SRE runbooks and durable runtime signals) and Metabolism (cost per successful outcome and budget alerts).
Plan section 8 sets what to capture and plan section 15 sets SLOs and the error-budget policy; this guide gives the engineering detail.
Covered elsewhere:
- Grading, datasets and release gates: Evaluations.
- Cost levers and budgets: Cost and latency engineering.
- Runtime blocking and PII detection in content: Guardrails.
- Checkpointing and long-running runs whose traces span hours: Agent runtime and durable execution.
- Tool and MCP server instrumentation duties: Tool design and MCP servers.
- Prompt versions stamped on traces: Prompt assembly and context engineering.
When to use what
| Option | Use when | Avoid when | Cost and latency notes |
|---|---|---|---|
| OTel GenAI conventions via an instrumentation library (for example OpenLLMetry, OpenInference, OpenLIT) | Default for all agents; you want vendor-neutral spans [15][16] | The framework already emits conformant GenAI spans natively | Small client overhead; batch exporters keep it off the request path |
| Framework or platform native tracing (for example LangSmith, MLflow Tracing, Logfire, cloud agent platforms) | Team is committed to that framework; fast start | It is the only copy and cannot export OTel | Check whether it exports or ingests OTel; MLflow states GenAI convention support for export and ingestion [17] |
| OTel Collector in your trust boundary | Always for production: redaction, sampling, routing, fan-out [11] | Never skip for regulated data | One more tier to run; tail sampling needs a load-balancing layer [10] |
| APM backend with GenAI support (for example Datadog, Dynatrace, New Relic, Grafana, Elastic, Splunk) | Existing SRE estate; correlation with infrastructure | You need deep eval workflows only | Priced by spans or ingest; Datadog states native support for convention v1.37+ and 40,000 free LLM spans a month for its customers [14] |
| Eval-plus-tracing platform (for example Langfuse, Arize Phoenix, Braintrust, W&B Weave, Opik) | Quality work: annotation, datasets, online judges on traces | It becomes the only operational telemetry | Often per trace or per event; self-hosting moves cost to storage |
| Content capture on spans | Development and staging; short debugging windows | Production with personal or privileged data | Content dominates trace size |
Content in external storage with _ref attributes [3] |
Production needs replay under access control | No separate access model exists | Second store to secure and expire |
Notes:
- Fan out from one Collector: metrics and sampled traces to the SRE backend, scoring candidates to the eval platform, so no vendor owns the data.
- Adoption is broad but shallow: about 89% of surveyed practitioners have some agent observability, but only 62% can inspect individual steps and tool calls [24].
Decision criteria
- Is there an existing APM estate? Yes points to that backend for metrics, alerts and infrastructure correlation, with an eval platform beside it; no points to an open-source stack (Collector plus an OTel-native store and an eval platform).
- Does the data include personal, privileged or regulated content? Yes points to
NO_CONTENTcapture in production, redaction at source and in the Collector, and a separate restricted content store; no allows sampled content capture with short retention. - What is the risk tier (plan section 13.2)? Tier 3 keeps 100% of traces for consequential actions and an unsampled audit stream; Tier 1 can head-sample aggressively.
- What volume? Tens of small traces per second or fewer may need no sampling at all [9]; high volume needs head plus tail sampling and a load-balancing Collector layer [10].
- Is the system an EU high-risk AI system? Yes means automatic event logging over the system's lifetime (Article 12) and log retention of at least six months (Article 19), reconciled with data minimisation in the ROE (to be defined, plan section 12) [20][21][22].
- How long do runs last? Minutes fit one trace; runs that wait hours for approval need span links across traces, not spans held open.
- Do agents call MCP servers or other agents? Yes means trace context must cross the boundary: MCP 2026-07-28 documents
traceparent,tracestateandbaggagein_meta[12]. - Who needs the data? SRE (latency, errors), FinOps (tokens, cost), quality (content, scores), audit (decisions, approvals). Each consumer drives a different retention and access rule.
Reference patterns
Pattern 1: Canonical agent-run trace
Problem. Every framework names spans differently, so dashboards, alerts and eval pipelines break when the framework changes.
How it works. Emit the GenAI conventions, with these spans per run:
| Span name | Kind | Purpose | Key attributes |
|---|---|---|---|
invoke_agent {gen_ai.agent.name} or invoke_workflow {name} |
INTERNAL | Root of a run; invoke_agent when the model drives control flow, invoke_workflow when the application does [1] |
gen_ai.agent.name, gen_ai.agent.id, gen_ai.agent.version, gen_ai.conversation.id, gen_ai.usage.input_tokens, gen_ai.usage.output_tokens |
plan {gen_ai.agent.name} |
INTERNAL | Only when planning is distinguishable from reasoning [1] | gen_ai.operation.name |
{gen_ai.operation.name} {gen_ai.request.model} (for example chat) |
CLIENT | Each model call [4] | gen_ai.provider.name, gen_ai.request.model, gen_ai.response.model, gen_ai.response.finish_reasons, gen_ai.usage.cache_read.input_tokens, gen_ai.usage.cache_write.input_tokens, gen_ai.usage.reasoning.output_tokens, gen_ai.response.time_to_first_chunk |
execute_tool {gen_ai.tool.name} |
INTERNAL | Each tool call [2] | gen_ai.tool.name, gen_ai.tool.type, gen_ai.tool.call.id, error.type; opt-in gen_ai.tool.call.arguments and gen_ai.tool.call.result |
retrieval, search_memory, upsert_memory |
per library | Knowledge and memory operations [3] | gen_ai.data_source.id |
Nested invoke_agent |
INTERNAL or CLIENT | Sub-agents; remote agents use the client invoke-agent span [1] | Same as root |
Enforce in code review: gen_ai.agent.name low-cardinality; gen_ai.agent.id stable and provider-assigned; gen_ai.conversation.id only from a real identifier, never a generated UUID or trace ID; input tokens include cached and output tokens include reasoning, with billed counts preferred [1][4]; sampling-relevant attributes set at span creation [1][2].
Add CoE attributes under a private namespace (practitioner default): prompt, tool server, router and agent versions (required by plan section 4B), risk tier, autonomy level, pseudonymised user and tenant, environment, side-effect flag, acting identity, policy decision ID.
When to use. Every agent, from the first prototype.
Pitfalls. Mixed convention versions across services; inventing operation names the conventions already define [3].
Pattern 2: Control events on the trace
Problem. The most important moments in an agent run (a guardrail block, a policy denial, a human approval, a kill-switch activation) are not model or tool calls, and the GenAI conventions read for this guide do not define spans for them.
How it works. Record each as a span event or child span with CoE attributes: guardrail and decision, policy decision ID and effect (plan section 10B), HITL request ID, pseudonymised approver, decision and wait time, escalation reason, retries, circuit-breaker state. Tool errors use a low-cardinality error.type (fallback _OTHER) and the gen_ai.execute_tool.exception event [2]. For approvals that wait hours, end the run span at the pause and link the resumed trace; tail sampling waits a bounded time (decision_wait defaults to 30 seconds) [10].
When to use. Any agent with guardrails, policy grants or HITL, which in this CoE means all of them.
Pitfalls. Logging approvals only in the approval tool, so the trace cannot show who approved what; putting free-text approver comments into attributes.
Pattern 3: Collector pipeline with redaction and tiered sampling
Problem. Content capture, sampling and routing done in each application drift apart and cannot be audited.
How it works. Applications export OTLP to a first Collector tier that load-balances by trace ID; a second tier runs redaction and tail sampling, then fans out [10].
# illustrative Collector fragment (second tier)
processors:
redaction:
allow_all_keys: false
allowed_keys: [gen_ai.operation.name, gen_ai.agent.name, gen_ai.request.model,
gen_ai.usage.input_tokens, gen_ai.usage.output_tokens, gen_ai.tool.name, error.type]
blocked_values: ["\\b\\d{3}-\\d{2}-\\d{4}\\b"] # example pattern only
hash_function: hmac-sha256
summary: info
tail_sampling:
decision_wait: 30s
policies:
- {name: errors, type: status_code, status_code: {status_codes: [ERROR]}}
- {name: slow, type: latency, latency: {threshold_ms: 30000}}
- {name: control, type: boolean_attribute, boolean_attribute: {key: coe.control_event, value: true}}
- {name: baseline, type: probabilistic, probabilistic: {sampling_percentage: 10}}
The redaction processor removes keys not on allowed_keys, masks blocked patterns and supports HMAC hashing, recommended for low-entropy values [11]; it is beta for traces, alpha for logs and metrics, and tail sampling is beta [10]. Mask in the application first where the SDK allows (in Langfuse a failing mask function drops the export batch) [13]; the Collector is the second line.
When to use. All production deployments.
Pitfalls. An allow list that silently strips new convention attributes after an upgrade; tail sampling without the load-balancing tier, so spans of one trace land on different collectors and decisions fail [10]; unmonitored exporter drops.
Pattern 4: Trace-to-eval feedback loop
Problem. Judge scores, feedback and HITL overrides live apart from traces, so nobody sees which version or step caused a bad score.
How it works. Each score becomes a gen_ai.evaluation.result event parented to the span it judges, or carrying gen_ai.response.id when no span is available, with gen_ai.evaluation.name, gen_ai.evaluation.score.value or score.label, and gen_ai.evaluation.explanation [7]. User feedback and HITL edits attach the same way, keyed by trace ID. Selected traces flow to an annotation queue for human review, and reviewed traces are promoted into the golden set with provenance (Langfuse, for example, provides annotation queues, live LLM-as-judge scoring and score analytics that compare human and AI annotations) [25]. See Evaluations for sampling rates and judge calibration.
When to use. Every agent in production.
Pitfalls. Scores without the artefact versions of the run; promoting traces containing personal data into datasets without pseudonymisation.
Pattern 5: SLO burn-rate alerting for agents
Problem. Threshold alerts on latency or error counts page too often on noise and too late on slow quality decay.
How it works. Take SLIs from plan section 15 and alert on error-budget burn rate with two windows. Google's SRE workbook recommends, as a starting point for a 99.9% SLO, paging at 14.4 times burn over 1 hour (5-minute short window, 2% of budget), paging at 6 times over 6 hours (30-minute short window, 5%), and ticketing at 1 times over 3 days (6-hour short window, 10%) [18]. Use longer windows for judge-scored SLIs, which have fewer samples. Add alerts for cost anomalies, runaway loops (from gen_ai.invoke_agent.inference_calls and .tool_calls [5]), escalation shifts either way, guardrail spikes and pipeline drops. A spent budget triggers plan section 15's freeze and autonomy step-down.
When to use. Tier 2 and Tier 3 agents; Tier 1 can start with ticket-only alerts.
Pitfalls. Alerting on a judge score computed from a handful of samples; paging on cost without per-tenant context.
Pattern 6: Split operational telemetry from the audit record
Problem. Telemetry is sampled, redacted and short-lived; audit evidence must be complete, tamper-evident and scheduled.
How it works. Emit an append-only audit event, never sampled, for every consequential action, approval, policy decision, autonomy change and kill-switch activation, carrying the trace ID so investigators can pivot to the trace while it exists. Keep it in a write-once store under the records schedule and legal-hold process (plan section 13.7). This follows Google SRE practice of persisting execution traces and attributing every action to a unique agent identity [19]. Traces stay operational, sampled and short-retention.
When to use. Any agent that takes actions with side effects, and every EU high-risk system [20].
Pitfalls. Treating 10% trace sampling as the audit trail; deleting audit records with traces under a single retention policy.
Recommended defaults
| Setting | Default | Range or options | Why |
|---|---|---|---|
| Convention version | Pinned per release, recorded on every span's schema | Upgrade deliberately with dashboard tests | Development status, no tagged release [1][8] |
| Content capture in production | OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENT=NO_CONTENT |
SPAN_ONLY, EVENT_ONLY, SPAN_AND_EVENT in dev and staging |
Sourced default is NO_CONTENT [3]; library support varies |
| Content when needed in production | External store via _ref attributes, restricted access, 7 to 30 days |
Redacted inline for low-risk agents | Sourced pattern [3]; retention practitioner default |
| Root span per run | invoke_agent (model-driven) or invoke_workflow (app-driven) |
Nested invoke_agent for sub-agents |
Sourced [1] |
| Conversation ID | Real session identifier only | Omit if none | Sourced [1] |
| Collector | Two tiers: load-balancing, then redaction and tail sampling | Single tier when no tail sampling | Sourced [10][11] |
| Head sampling | 100% below about 10 traces a second; otherwise 10% to 25% | 1% for very high volume Tier 1 | Practitioner default; low-volume guidance [9] |
| Tail sampling keep rules | 100% of errors, escalations, guardrail and policy hits, HITL, kill switch, top 1% cost and latency, all Tier 3 actions | Add per-tenant quotas | Practitioner default; policy types [10] |
| Metrics | Never sampled; computed before trace sampling | None | Practitioner default |
| Identifier hashing | HMAC-SHA256 with a managed key | Tokenisation service | Sourced recommendation for low-entropy values [11] |
| Burn-rate alerts | 14.4x over 1 h and 6x over 6 h page; 1x over 3 days ticket | Tune per SLO | Sourced starting point [18] |
| Trace retention | 30 days hot, sampled | 14 to 90 days | Practitioner default |
| Metrics and metadata retention | 13 months | 6 to 24 months | Practitioner default (year-on-year comparison) |
| High-risk system logs (EU) | At least six months | Longer by sector law | Sourced [21]; plan section 11.7 |
| Audit events | Records schedule, write-once, legal hold | Per client policy | Plan section 13.7 |
| MCP and A2A calls | Propagate W3C trace context | None | Sourced for MCP [12] |
Anti-patterns
- Full prompts and responses on production spans by default. Fix:
NO_CONTENTdefault, redaction at source and in the Collector,_refstore for justified cases [3][11]. - Framework-specific span names in dashboards. Fix: map to GenAI conventions and build dashboards on
gen_ai.*attributes. - Unpinned conventions. Attributes are still moving at Development status [1]. Fix: pin, record the schema, test dashboards on upgrade.
- High-cardinality agent names or fabricated conversation IDs. Fix: follow the conventions' rules on
gen_ai.agent.nameandgen_ai.conversation.id[1]. - Sampled traces as the audit trail. Fix: separate unsampled audit stream (Pattern 6).
- Head sampling only. Head sampling cannot guarantee every trace with an error is kept [9]. Fix: add tail sampling for errors and control events.
- Tail sampling on a single scaled-out tier. Fix: load-balance by trace ID first [10].
- Spans held open across human approvals. Fix: end at the pause, link the resumed trace.
- Cost computed only in the vendor's billing console. Fix: compute cost per step and per run from token metrics and a versioned price table in the pipeline, so cost per successful outcome joins with eval results.
- Eval scores in a separate tool with no trace link. Fix:
gen_ai.evaluation.resultevents parented to spans [7]. - No monitoring of the telemetry pipeline. Fix: alert on exporter failures, dropped batches (including mask failures [13]) and Collector queue saturation.
- MCP servers logging to their own files. MCP 2026-07-28 deprecates its Logging feature and suggests OpenTelemetry instead [12]. Fix: OTel in every MCP server, with context from
_meta.
Sizing and cost notes
Span volume (illustrative). A typical run might produce 1 root span, 8 inference spans, 6 tool spans and 2 retrieval spans: 17 spans. Metadata-only spans of about 1.5 KB give roughly 25 KB per run. With content captured, inference spans carrying the growing context window can reach tens to hundreds of KB each; at an assumed 50 KB per inference span, a run is about 425 KB.
| Volume (illustrative) | Metadata only | With content |
|---|---|---|
| Per run | about 25 KB | about 425 KB |
| 100,000 runs a day | about 2.5 GB a day | about 42 GB a day |
| 30-day hot retention | about 75 GB | about 1.3 TB |
| 6 months | about 450 GB | about 7.7 TB |
Content is the cost driver, another reason to default to NO_CONTENT. Sampling at 10% with tail keep rules typically cuts trace storage by most of that volume; OpenTelemetry describes sampling as one of the most effective ways to reduce observability cost without losing visibility [9].
Pipeline cost. Tail sampling buffers whole traces and at scale can need dozens or hundreds of nodes [9]; size the second tier for peak traces per second times the decision wait.
Vendor pricing. Platforms price by span, trace, event or ingested GB; one agent run can produce many billable spans (Datadog notes that a single agent workflow can produce several LLM spans) [26]. Model the bill on spans per run, not requests.
Latency. Use batch span processors and asynchronous exporters so instrumentation stays off the request path; measure TTFT with gen_ai.response.time_to_first_chunk or the gen_ai.client.inference.time_to_first_chunk histogram, which count only chunks with new output [4].
Metrics to build cost and SLO dashboards from [4][5][6]:
| Signal | Source |
|---|---|
| Tokens and cache | gen_ai.client.inference.usage.input_tokens, .output_tokens, .cache_read.input_tokens, .cache_write.input_tokens, .reasoning.output_tokens (counters) |
| Model latency | gen_ai.client.inference.duration; TTFT gen_ai.client.inference.time_to_first_chunk |
| Run latency and loops | gen_ai.invoke_agent.duration, gen_ai.invoke_agent.inference_calls, gen_ai.invoke_agent.tool_calls |
| Tool latency and error rate | gen_ai.execute_tool.duration with error.type |
| Self-hosted serving | gen_ai.server.time_to_first_token, gen_ai.server.time_per_output_token, gen_ai.server.request.duration |
| Cost, escalation rate, override rate, task success | CoE-derived from the above plus control events and eval results |
Security and compliance hooks
Threats (OWASP Top 10 for LLM Applications 2025 [23] and OWASP Top 10 for Agentic Applications [27]):
| Threat | Observability control |
|---|---|
| LLM02 Sensitive information disclosure | Telemetry is a disclosure path: content opt-in, redaction, restricted content store, access logging on the trace backend |
| LLM07 System prompt leakage | Keep gen_ai.system_instructions off production spans; reference by version instead |
| LLM10 Unbounded consumption | Runaway and cost alerts from agent and token metrics |
| LLM01 Prompt injection; ASI01 Goal hijack | Guardrail and policy events on the trace; alerts on detection spikes; trace evidence for forensics |
| LLM06 Excessive agency; ASI02 Tool misuse; ASI03 Identity and privilege abuse | Acting identity and policy decision on every tool span; alerts on denied-call spikes |
| ASI08 Cascading failures; ASI10 Rogue agents | Cross-agent trace propagation; anomaly alerts on call graphs and volumes |
Controls. Treat telemetry stores as production data stores (identity, encryption, residency, access review); keep the Collector inside the trust boundary [13]. Pseudonymise user and tenant IDs with HMAC [11]. Apply data minimisation (GDPR Article 5(1)(c)) and storage limitation (Article 5(1)(e)) to telemetry as to any personal data [22]. Respect residency: route EU data to EU backends at the Collector. Some vendors scan and redact sensitive data in traces automatically [26]; treat that as a backstop, not the primary control.
Regulatory tension. EU AI Act Article 12 requires high-risk systems to allow automatic recording of events over their lifetime, to identify risk situations, support post-market monitoring and monitor operation [20]; Article 19 requires providers to keep those logs for at least six months [21]. Resolve logging duty against minimisation per use case in the ROE (to be defined, plan section 12) and the records design: log decisions, versions and metadata fully; keep content only where justified.
Audit evidence to keep: instrumentation and convention version per release; Collector configuration history (redaction allow lists, sampling policies); access logs to telemetry stores; SLO definitions and alert history; incident timelines with trace IDs; the unsampled audit stream; retention and deletion logs; legal-hold records.
Governing plan sections: 8 (tracing standard), 15 (SLOs, incidents, FinOps, reporting clocks), 10 and 10C (threats, private connectivity for telemetry egress), 10A and 10B (identity and policy decisions on spans), 11 (Articles 12, 19 and 26 duties), 13 (records and legal hold, 13.7), 14 and 14A (approval and kill-switch evidence), and the ROE (to be defined, plan section 12).
Test and eval checklist
| ID | Stage | Check | Pass criteria |
|---|---|---|---|
| OBS-01 | Design | Tracing standard adopted | Agent spans, attributes and CoE namespace documented; convention version pinned |
| OBS-02 | Design | Telemetry data classification | Each attribute and event classified; content policy per environment approved by privacy |
| OBS-03 | Design | Retention schedule | Retention set per record type, aligned to plan 11.7 and 13.7 |
| OBS-04 | Design | SLOs defined | SLIs, targets and error-budget policy per plan section 15 agreed with the business owner |
| OBS-05 | Build | Span coverage | Every model call, tool call, retrieval, memory op and sub-agent appears in the trace |
| OBS-06 | Build | Root span semantics | invoke_agent or invoke_workflow used correctly; agent name low-cardinality |
| OBS-07 | Build | Versions stamped | Prompt, tool server, model, router and agent versions on every run |
| OBS-08 | Build | Control events | Guardrail, policy, HITL, escalation and kill-switch events on the trace with IDs |
| OBS-09 | Build | Trace propagation | Context crosses MCP, A2A, queues and async resumption (links) |
| OBS-10 | Build | Content capture off in production | Production config shows NO_CONTENT or redacted capture |
| OBS-11 | Test | Redaction tests | Seeded PII and secrets absent from exported spans, logs and metrics |
| OBS-12 | Test | Allow-list upgrade test | Convention upgrade does not silently drop required attributes |
| OBS-13 | Test | Sampling rules | 100% of error, escalation, policy-hit and HITL traces retained in a test run |
| OBS-14 | Test | Token and cost accuracy | Token counts within 1% of provider billing on a reconciliation sample |
| OBS-15 | Test | Eval linkage | Online scores appear as gen_ai.evaluation.result on the judged span |
| OBS-16 | Test | Load | Instrumentation adds under 5% to p95 latency; Collector holds peak load with no drops |
| OBS-17 | Test | Alert drills | Burn-rate, runaway and cost alerts fire in a game day and reach on-call |
| OBS-18 | Release | Dashboards live | Health, cost, safety, value and pipeline dashboards populated for the release |
| OBS-19 | Release | Audit stream | Every consequential action has an unsampled audit event with trace ID |
| OBS-20 | Release | Access control | Telemetry store access limited by role; access logged |
| OBS-21 | Run | Pipeline health | No unexplained exporter drops or mask failures over 7 days |
| OBS-22 | Run | Error-budget review | Monthly SLO review held; policy applied when budget spent |
| OBS-23 | Run | Retention enforced | Deletion jobs run on schedule; legal holds respected |
| OBS-24 | Run | Residency | Telemetry stored only in approved regions |
| OBS-25 | Run | Incident traceability | Every incident postmortem cites trace IDs and versions |
Related plan sections and inventory
- 8 Observability and tracing
- 15 Operations: AgentOps, SRE, incident management and FinOps
- 7 Evaluation, testing and quality engineering
- 4B Release process for non-code artefacts
- 11.7 EU deployer duties and 13.7 Privilege, records and legal hold
- 10C Network topology and private connectivity
- Inventory: Observability and tracing and AgentOps, model serving and FinOps. Examples across licence types: OpenTelemetry GenAI conventions, OpenLLMetry, OpenLIT, MLflow Tracing, AgentOps and W&B Weave (open source); Langfuse (open source with paid tiers); Arize Phoenix (source-available) and Arize AX; LangSmith and Pydantic Logfire (free and paid tiers); Datadog, Dynatrace, New Relic, Grafana Cloud and Elastic (paid APM); Amazon CloudWatch generative AI observability, Azure Monitor Application Insights agent view and Google Cloud Observability for agents (cloud). Helicone is listed in maintenance status in the inventory.
- Related guides: Evaluations, Cost and latency engineering, Guardrails, Agent runtime and durable execution, Tool design and MCP servers, Orchestration, multi-agent and A2A.
Governing policies and procedures
From the CoE policy set (draft; control IDs on the policy crosswalk):
- POL-12 Logging, Audit and Provenance Policy
- POL-10 Agent Monitoring and Incident Response Policy
- PRC-14 Agent Incident Response and Postmortem
- PRC-16 Audit Evidence Collection and Log Review
Unverified or needs review
- Plan section 8 dates the move of the GenAI conventions to their own repository to 12 June 2026 at v1.42.0, from a secondary source; the repository itself shows no tagged release or schema URL yet [8].
- Plan section 8 and earlier research name a
gen_ai.client.operation.time_to_first_chunkmetric; the current repository definesgen_ai.client.inference.time_to_first_chunkand states thatgen_ai.client.operation.durationis not used for inference [4][5]. Plan text should be updated. - The capture variable
OTEL_INSTRUMENTATION_GENAI_CAPTURE_CONTENTis defined in the conventions [3]; individual instrumentation libraries may still use older names. Check each library before rollout. - The conventions read here define no spans for guardrails, policy decisions or HITL; the CoE namespace for these is a practitioner choice for the CoE lead to approve.
- Retention periods (other than the EU minimum), sampling rates, the 5% overhead budget and span sizes are practitioner defaults or illustrative.
- The OWASP agentic list [27] was verified in the 28 Nov research pass, not reopened here.
Sources
- OpenTelemetry, "GenAI agent and framework spans", semantic-conventions-genai repository, https://raw.githubusercontent.com/open-telemetry/semantic-conventions-genai/main/docs/gen-ai/gen-ai-agent-spans.md, accessed 30 Nov 2026.
- OpenTelemetry, "Execute tool" span and metric, https://raw.githubusercontent.com/open-telemetry/semantic-conventions-genai/main/docs/gen-ai/execute-tool.md, accessed 30 Nov 2026.
- OpenTelemetry, "Semantic conventions for generative AI spans" (operation names, content capture), https://raw.githubusercontent.com/open-telemetry/semantic-conventions-genai/main/docs/gen-ai/gen-ai-spans.md, accessed 30 Nov 2026.
- OpenTelemetry, "Client inference" spans, events and metrics, https://raw.githubusercontent.com/open-telemetry/semantic-conventions-genai/main/docs/gen-ai/client-inference.md, accessed 30 Nov 2026.
- OpenTelemetry, "Generative AI metrics", https://raw.githubusercontent.com/open-telemetry/semantic-conventions-genai/main/docs/gen-ai/gen-ai-metrics.md, accessed 30 Nov 2026.
- OpenTelemetry, "Inference token metrics", https://raw.githubusercontent.com/open-telemetry/semantic-conventions-genai/main/docs/gen-ai/gen-ai-token-metrics.md, accessed 30 Nov 2026.
- OpenTelemetry, "GenAI events" (gen_ai.evaluation.result), https://raw.githubusercontent.com/open-telemetry/semantic-conventions-genai/main/docs/gen-ai/gen-ai-events.md, accessed 30 Nov 2026.
- OpenTelemetry, semantic-conventions-genai repository README, https://github.com/open-telemetry/semantic-conventions-genai, accessed 30 Nov 2026.
- OpenTelemetry, "Sampling" (concepts), https://opentelemetry.io/docs/concepts/sampling/, accessed 30 Nov 2026.
- OpenTelemetry Collector Contrib, "Tail sampling processor", https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/tailsamplingprocessor/README.md, accessed 30 Nov 2026.
- OpenTelemetry Collector Contrib, "Redaction processor", https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/redactionprocessor/README.md, accessed 30 Nov 2026.
- Model Context Protocol, "Specification 2026-07-28: Key changes", https://modelcontextprotocol.io/specification/2026-07-28/changelog, accessed 30 Nov 2026.
- Langfuse, "Masking of sensitive data", https://langfuse.com/docs/observability/features/masking, accessed 30 Nov 2026.
- Datadog, "Datadog LLM Observability natively supports OpenTelemetry GenAI semantic conventions" (1 Dec 2025), https://www.datadoghq.com/blog/llm-otel-semantic-convention/, accessed 30 Nov 2026.
- Arize AI, OpenInference repository, https://github.com/Arize-ai/openinference, accessed 30 Nov 2026.
- Traceloop, OpenLLMetry repository, https://github.com/traceloop/openllmetry, accessed 30 Nov 2026.
- MLflow, "MLflow Tracing", https://mlflow.org/docs/latest/genai/tracing/, accessed 30 Nov 2026.
- Google SRE Workbook, "Alerting on SLOs", https://sre.google/workbook/alerting-on-slos/, accessed 30 Nov 2026.
- Google SRE, "AI engineering for reliable operations", https://sre.google/resources/practices-and-processes/ai-engineering-reliable-operations/, accessed 30 Nov 2026.
- European Commission AI Act Service Desk, "Article 12: Record-keeping" (consolidated text as at 27 Jul 2026), https://ai-act-service-desk.ec.europa.eu/en/ai-act/article-12, accessed 30 Nov 2026.
- European Commission AI Act Service Desk, "Article 19: Automatically generated logs", https://ai-act-service-desk.ec.europa.eu/en/ai-act/article-19, accessed 30 Nov 2026.
- GDPR, "Article 5: Principles relating to processing of personal data", https://gdpr-info.eu/art-5-gdpr/, accessed 30 Nov 2026.
- OWASP GenAI Security Project, "OWASP Top 10 for LLM Applications 2025", https://genai.owasp.org/llm-top-10/, accessed 30 Nov 2026.
- LangChain, "State of Agent Engineering" (published Jun 2026; survey Nov to Dec 2025, n=1,340), https://www.langchain.com/state-of-agent-engineering, accessed 30 Nov 2026.
- Langfuse, "Evaluation overview", https://langfuse.com/docs/evaluation/overview, accessed 30 Nov 2026.
- Datadog, "LLM Observability" documentation, https://docs.datadoghq.com/llm_observability/, accessed 30 Nov 2026.
- OWASP GenAI Security Project, "OWASP Top 10 for Agentic Applications" (9 Dec 2025), https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications/, accessed 30 Nov 2026 (verified in the 28 Nov research pass).