Open Agent School · Public worked example
Observability & Tracing: meaning and example
Welcome! Take one idea with you today.
Observability is the ability to understand what a system did from the signals it emits. A trace follows one request through its steps; each step is a span with timing and attributes. OpenTelemetry (OTel) is an open standard for these signals, and its generative AI conventions name attributes such as model and token counts while marking message content as opt-in.
Picture it: An invented bike-rental service handles 10,000 synthetic assistant requests a day, about 200 of which fail. Each request includes a guard, retrieval, a model call, and a tool call with the rider's email and an access token. Decide what to sample, what to capture, and what to redact.
What is easy to mix up?
Telemetry is often widely accessible and retained for a long time. Never send secrets; capture content only when needed, redact before export, and restrict and expire access.
Teaching example by Open Agent School. Source: OpenTelemetry docs - Traces: spans, attributes, and context propagation.