Data and security

Observability concepts

Requests, attempts, sessions, traces, spans, checks, scores and datasets, and which of them depend on stored content.

Every call through the gateway is recorded, whatever your storage settings. What you can see about its content depends on what your organization stores.

The building blocks

TermWhat it is
RequestOne call to the gateway, with its model, tokens, cost, latency and status. Its id is the x-request-id response header
AttemptOne dispatch of a request to a provider. A request that failed over has several
SessionThe requests of one run or conversation: the session id you sent, else the conversation we recognize, else the trace
Trace and spanA trace is a tree of spans. Every request is one span; tool calls, subagents and your own spans fill in the rest
Inferred spanA tool call we read from your traffic. Its timing is an estimate
CheckA question AI answers, or a rule we match, about each new model call or session. The API calls it a trace tag
ScoreA judgement about a request, session or span: a check's result, or one from a person or your code
DatasetStored traffic kept as test cases

Read them in Observability, Traces and sessions and Checks.

request req_01JD8ZK4...
  attempt 0  provider A  throttled
  attempt 1  provider B  completed   4,210 in / 388 out   $0.0031

What needs stored content

Always availableNeeds stored prompts
Model, tokens, cost, latency, status, errors, attemptsPrompt and response bodies, previews
Sessions, traces and their timingText search, inferred tool spans
Scores (a score is not content), Rule checks on status, latency, cost and tokensAI checks, text and tool Rule checks, dataset items copied from traffic

Prompts are stored only while your organization's storage switch is on, never for a request routed under zero data retention, and only until they expire. A key or a request can store less. See Data controls and Data controls concepts.

GET /api/orgs/{org_id}/observability/availability