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
| Term | What it is |
|---|---|
| Request | One call to the gateway, with its model, tokens, cost, latency and status. Its id is the x-request-id response header |
| Attempt | One dispatch of a request to a provider. A request that failed over has several |
| Session | The requests of one run or conversation: the session id you sent, else the conversation we recognize, else the trace |
| Trace and span | A trace is a tree of spans. Every request is one span; tool calls, subagents and your own spans fill in the rest |
| Inferred span | A tool call we read from your traffic. Its timing is an estimate |
| Check | A question AI answers, or a rule we match, about each new model call or session. The API calls it a trace tag |
| Score | A judgement about a request, session or span: a check's result, or one from a person or your code |
| Dataset | Stored 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.0031What needs stored content
| Always available | Needs stored prompts |
|---|---|
| Model, tokens, cost, latency, status, errors, attempts | Prompt and response bodies, previews |
| Sessions, traces and their timing | Text search, inferred tool spans |
| Scores (a score is not content), Rule checks on status, latency, cost and tokens | AI 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