Observability for Agentic AI: From One Trace to a Governed Telemetry Hub
A maturity journey. An agentic application starts life as a black box spread across several runtimes. This is the story of how its observability evolves — from seeing inside a single request, to delivering that telemetry wherever the business needs it, to governing and scaling it as a shared platform. The OpenTelemetry Collector is the component that absorbs this growing complexity, and the discipline is to introduce it exactly when a new pressure demands it, never before.
Make it observable
You have an agentic application and cannot see inside it.
A Travel Planner agent answers "plan 5 days in Tokyo," and that one request drives work across several independent runtimes:

- A Lambda web function (FastAPI) is the entry point.
- An AgentCore runtime hosts the agent (built with the Strands Agents SDK), which runs a reasoning loop and calls tools.
- Amazon Bedrock provides the model.
- Two Lambda functions are the tools.
- AgentCore Memory stores preferences.
One logical request is four or five separate processes, each starting and exiting on its own. Without a deliberate design, their telemetry lands in disconnected places and you cannot reconstruct what happened on a single request.
The key idea: instrument with OpenTelemetry and stitch one trace. OTEL is the industry standard. Each runtime emits spans, and when every span carries the same
trace_id , a backend reassembles them into one timeline. The stitching is automatic over HTTP, and explicit across the one boundary OTEL cannot cross on its own — the AWS SDK lambda.invoke , where the trace context must ride in the payload:

Each component then exports directly to a single backend — here Langfuse, which is LLM-native and renders the agent's reasoning, model calls, tokens, and tool calls as one waterfall. No intermediary, no custom telemetry framework: the SDK and the agent framework do the work, configured by environment variables.
→ Deep dive: Integrated Observability with OpenTelemetry — the full walkthrough, the three signals (traces/metrics/logs), and the serverless flush.
The trigger for Act 2: the system works and is observable. Then a new requirement arrives — the telemetry must also reach a second destination.
Send it where the business needs it
The pressure: a platform team standardizes on Datadog, or you need APM alongside the LLM-native view. The telemetry must go somewhere new.
The key idea: the backend is a configuration choice, not an architecture decision. Because everything is plain OTLP and nothing is bound to a vendor, changing or adding a backend is a configuration change. The same spans that went to Langfuse can go to AWS X-Ray, to Grafana, or to Datadog — without touching instrumentation.
One nuance surfaces here, and it introduces the Collector. Unlike an OTLP-native SaaS, Datadog does not accept raw public OTLP. It ingests OpenTelemetry through the Datadog Agent in OTLP mode or through an OTel Collector with the
datadog exporter. So "send to Datadog" becomes a choice among three paths:

- Collector + Datadog exporter (recommended) — vendor-neutral instrumentation; the Collector is the one place that knows Datadog.
- Datadog Agent in OTLP mode — fewer parts if you already run the agent.
- Keep CloudWatch, forward to Datadog — no agent change, but trace fidelity suffers.
This is the first time a Collector is warranted: a single, central place that translates and forwards to a specific destination.
→ Deep dive: Sending AgentCore Telemetry to Datadog — the three options, and illustrative code for emitting all three signals through a Collector.
The trigger for Act 3: one extra destination is manageable. But the system keeps growing — more producers, more formats, more destinations, and real user data
Govern and scale it as a hub
Telemetry now arrives in several formats (OTLP, an agent-SDK's native emitter, a legacy tracer, logs), must reach several destinations (Langfuse, Datadog, Prometheus, an archive), carries real user prompts that must be protected, and needs a consistent schema across teams.
At this scale the Collector graduates from a simple relay into a telemetry hub — a translation, governance, and routing layer. A clarification that removes a common misconception: the hub is not custom software. It is the off-the-shelf, open-source OpenTelemetry Collector, run as a server and driven by a YAML configuration. You configure it; you do not write it.

The key idea: centralize the work that would otherwise be duplicated. The hub performs six functions, almost all as configuration against built-in processors:
- Multi-format ingest — OTLP, native emitters, Zipkin/Jaeger/Prometheus, logs.
- Normalize — map every source to one canonical schema and reconcile identity.
- Enrich — consistent tags and derived fields such as cost from tokens.
- Govern — redact, mask, and drop: PII, secrets, and any data not permitted to leave for the observability platform (egress control). The policy can differ per destination — stricter for an external SaaS than for an in-account store.
- Reliability — memory limiting, queues, retry, per-exporter isolation.
- Route / fan-out — selectively, with per-target transformation.
Three pressures, beyond simply adding a backend, independently justify a hub: heterogeneous inputs, egress control and data minimization, and standardization across sources. All three are declarative configuration, not code — you write code only to ingest a format the Collector does not support, or for governance logic beyond the rule language.
Because the hub now sits in the path of your telemetry, resilience becomes a first- class concern, governed by one principle: telemetry is best-effort; the application is not. Buffer near the producer, replicate the gateway, shed load before memory exhaustion, queue and retry per exporter, and drop telemetry rather than apply backpressure to the application:

Deep dive: Designing a Telemetry Hub — the six functionalities, design considerations, building (assembling) the Collector, and the full resilience model.
Where you are on the journey
The through-line is a single discipline: the backend and transport decisions get harder as the system matures, and the OpenTelemetry Collector absorbs that complexity — introduced exactly when a new pressure appears, never to future-proof.
Use the stage to decide how much to build:
Stage | Pressure | What you build |
|---|---|---|
1. Observe | Cannot see inside the app | OTEL instrumentation; one trace; direct export to one backend |
2. Route | Telemetry must reach a new/second destination | Backend as configuration; a Collector when the destination (e.g. Datadog) needs one |
3. Govern | Many formats, many destinations, real user data, standardization | A telemetry hub: ingest, normalize, govern, route — with resilience |
Start at Stage 1 and stay there as long as it serves you; direct export is simpler and has no shared service to operate. Move to Stage 2 when a second destination appears, and to Stage 3 when inputs, outputs, governance, or standardization genuinely multiply. The goal is never to run a hub — it is to see inside the system with exactly as much machinery as the moment requires.
Enjoyed reading this content? Let the author know!
Your likes, comments, shares, and saves help creators reach more builders.
Loading recommendations
Loading article