What you will learn
- Say what a trace and a span are, and what a trace tells you about an agent
- Follow a trace from the agent through the gateway and the collector into storage
- Explain how the console reads traces back, and which parts are not in that path
- Say which part makes sure a trace is stored with the right component and environment
Before you start
- What is Choreo Agent Manager? Not started In progress Done
On this page
An agent that answers a question may call a model three times, search a document store and call a tool before it replies. When the answer is wrong, you want to see each of those steps. A TraceA record of what an agent did while handling one request, made of steps called spans, such as a model call or a tool call.Analogy:The flight recorder of one flight.See it in the glossary is that record.
What a trace holds
A trace follows one request through an agent. It is made of steps called SpanOne step inside a trace, such as a model call or a tool call. A trace is made of spans, and the observer tags them by type.See it in the glossary, such as a model call or a tool call. The observer tags spans by type, so the console can show which steps were model calls. Traces use the OpenTelemetryAn open standard for traces, logs and metrics. Agents send traces in this format, and a collector receives and stores them.See it in the glossary format.
For a Python agent that the platform deploys, tracing can be added without changing the agent’s code. An init container copies the instrumentation into a volume that the agent loads when it starts, when auto-instrumentation is on for that agent. If that setup fails, the agent keeps running without tracing.
The route in six steps
The first three steps of the flow are the model call, which lesson L4.3.1 covers. The trace route is steps 4 to 9.
The agent sends a trace to the gateway
The agent sends its traces to the AI gatewayThe doorway for agent traffic to model vendors and tool servers. It runs each request through a chain of policies, such as keys, limits and guardrails, before passing it on.Analogy:Airside security and customs. ID check, bag scan, then the real boarding document.See it in the glossary, with an agent token in the
x-amp-api-keyheader. AMS signs that token for the agent. It names the agent, the environment and the project the trace comes from.The gateway checks the token
The gateway lets a trace through only if the token is genuine. It copies who the token belongs to into headers and hands the trace to the collector.
The collector labels the span
The OpenTelemetry collector stamps each trace with the component, environment, project and namespace it belongs to, taken from those headers. That label is what makes the trace findable later.
The collector stores it
Traces are written to OpenSearchThe search database in the observability plane. It stores agent traces in an index named otel-traces, created daily, and it stores container logs.See it in the glossary, into an index named
otel-tracesthat is created each day.The console asks the observer
When you open the traces page, the console asks the amp-observerAgent Manager's read only service for traces, logs, build logs and metrics. Its folder is agent-manager-observer, and it was once called traces-observer-service.See it in the glossary directly, with your token. AMS is not in this path.
The observer asks OpenChoreo's observer
amp-observer is a thin, read-only front. It checks your token for the observability scopes, then asks OpenChoreo’s observer with its own service token. That observer reads OpenSearch through an adapter.
Who does not touch what
- The console does not read OpenSearch. It asks the observer, and the observer asks OpenChoreo’s observer.
- amp-observer holds no data. It forwards each query.
- AMS does not carry traces. It signs the agent’s token and serves the public settings that tell the console where the observer is, but the trace data does not pass through it.
In Choreo Cloud
The trace route is the same shape. The observability plane is its own cluster, and a service called cloud-obs-proxy sits in front of OpenChoreo’s observer. It pins each query to the caller’s own organisation, which it works out from the organisation id in the token.
Your turn
Open Try it. Scroll the story “Watching your agents” and stop at each trace scene. Then play flow F9 and start at step 4. Which two steps are checks of a token, and which parts of the route does the console skip? Finish with the matcher on the trace path.
Recap
- A trace is made of spans, such as model calls and tool calls. It is the record of one request through an agent.
- The agent sends traces to the gateway with an agent token. The gateway checks it, and the collector labels and stores the trace in OpenSearch.
- The console reads traces by asking amp-observer, which asks OpenChoreo’s observer. AMS is not in the path.
- On Choreo Cloud, cloud-obs-proxy pins each query to the caller’s organisation.
Wrap up
Recap
Tick each one when you could explain it to a colleague.
Finished?
Chapter complete. Every lesson in this chapter is done.
Progress cannot be saved in this browser, so it will be forgotten when you leave this page.
Quick check
Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)