ON-PREM CHOREO CLOUD BOTH

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

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 is that record.

What a trace holds

A trace follows one request through an agent. It is made of steps called , 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 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

Flow

Agent LLM call through the AI gateway, and its trace

F9 10 steps ON-PREM

An agent calls an LLM through the AI gateway with a proxy key, then the spans it produces travel through the gateway to the collector, into OpenSearch, and back to the console through the observer.

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.

  1. The agent sends a trace to the gateway

    The agent sends its traces to the , with an agent token in the x-amp-api-key header. AMS signs that token for the agent. It names the agent, the environment and the project the trace comes from.

  2. 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.

  3. 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.

  4. The collector stores it

    Traces are written to , into an index named otel-traces that is created each day.

  5. The console asks the observer

    When you open the traces page, the console asks the directly, with your token. AMS is not in this path.

  6. 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.

Component

amp-observer (agent-manager-observer)

Data side Observability plane BOTH

amp-observer (agent-manager-observer) is Agent Manager's read-only service for telemetry. It returns traces, logs, build logs and metrics for agents, tags trace spans by type such as LLM call or tool call, and also offers an MCP endpoint. It sits in the observability plane and holds no data.

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.

Try it

Watch the story

What to do: scroll, press J and K, or use the Next scene button. The diagram follows the story.

Loading the story...

  1. Is it running, and is it any good?. Running agents is half the job. The other half is knowing what they did and how well they did it.
  2. The agent reports a trace. While it works, the agent reports what it did as traces. It sends them to the gateway with a token that names the agent, environment and project.
  3. The gateway checks the trace token. The gateway lets a trace through only if its token checks out. It copies who the token belongs to into headers and hands the trace to the collector.
  4. The collector stores it. The collector writes each trace into OpenSearch, into a new index each day.
  5. The console reads it back. When you open the traces page, the console asks the observer service directly. AMS is not in this path.
  6. The observer asks OpenChoreo. The observer is a thin front. It uses its own service account to ask OpenChoreo's observer for the data.
  7. You create a monitor. A monitor says which evaluators to run, how often and what share of traces to sample. AMS saves it in its own database.
  8. A clock ticks every minute. A scheduler inside AMS wakes every minute and finds the monitors that are due. Only one copy of AMS acts on each tick.
  9. AMS asks OpenChoreo to run it. AMS does not run the evaluation itself. It fills in an order form and hands it to OpenChoreo.
  10. Evaluators score each trace. Each evaluator is a small test. Some are plain rules and some ask a language model to judge.
  11. The scores come back. Opening the monitor page reads the stored scores, averages and trends from AMS's own database. Nothing is calculated on the spot.

Follow one request

What to do: press Play, or use Next, to walk through the request step by step.

Loading the diagram...

Match them up

What to do: pick an item on the left, then its partner on the right.

Loading the matching game...

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)