On this page
AI Observability
See what your own language model and agent features use and cost, how efficiently they run and whether they work - usage, prompt caching, truncated replies, agent and tool failures, evaluation scores and every step of an agent run - from the OpenTelemetry GenAI telemetry you already send.
AI Observability adds an AI area for the language model calls and agents your own services run. It answers three questions:
- What do they use and cost? Model calls, tokens in and out, estimated cost, latency and error rate, by model, provider, service and kind of call (chat, embeddings, text completion).
- How efficiently do they run? Prompt cache hit rate, tokens per call, output speed, model calls per request, and replies cut off at the token limit.
- Do they work? Agent run success, tool failures, replies a content filter stopped, failures by error type, and the evaluation scores and user feedback your evaluator sends.
The AI area has three screens:
- Overview: all of the above for any time range on one page, with the usage table broken down by model, provider, service or kind of call. Select a problem count to see the records behind it.
- Dashboards: four dashboards that ship with the add-on, Usage, Efficiency, Quality, and Agents & Tools, each showing its numbers over time.
- Agent Runs: every trace that contains GenAI spans, and for each one the ordered sequence of model calls and tool calls the agent made.
Powered by OpenTelemetry. It reads the OpenTelemetry GenAI semantic conventions, which the common instrumentations for OpenAI, Anthropic, Bedrock, Vertex AI, LangChain and LlamaIndex, OpenLLMetry and OpenLIT already emit. There is no second SDK, no proxy in the request path and no second destination.
Turn it on
It is an add-on like every other. A workspace Owner or Admin turns it on from Add-ons in the app, and turning it on or off affects only that workspace. It costs nothing extra: the spans it reads are billed on the same per-GB meter as the rest of your data.
The add-on controls the AI pages and dashboards, and nothing else. Your GenAI spans are accepted, stored and searchable in the Log Explorer whether it is on or off, and turning it on later shows the history you already sent, within your retention. While it is off, the AI pages say so and the AI section is hidden from the navigation.
Send GenAI telemetry
Turning the add-on on does not collect anything by itself. The AI pages fill in once your services send OpenTelemetry traces from GenAI instrumentation for their model client or framework, through your normal OpenTelemetry setup with an ordinary ingest key. There is no separate input.
Send GenAI telemetry walks through it: what to install for OpenAI, Anthropic, Bedrock, Vertex AI, LangChain and LlamaIndex in Python and Node.js, what each attribute lights up, how agent steps and evaluation scores arrive, and how to check that your data is arriving.
Prompts and replies
By default, only metadata is kept. Nothing in AI Observability needs the text of your prompts or the model's replies: the overview, the dashboards and the cost estimate work from the model, provider, service, token counts, cache usage, finish reasons, duration, status and evaluation scores alone. That text often contains personal data, so leave message content capture off:
- OpenTelemetry's own instrumentation leaves it off by default. Keep
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENTunset orfalse(newer versions also acceptNO_CONTENT). - OpenLLMetry records it by default. Set
TRACELOOP_TRACE_CONTENT=false. - OpenLIT records it by default. Turn off its content capture in its settings.
To keep content, turn capture on in your instrumentation. It is then stored like any other attribute, under your source's retention, and shown in the agent run view.
To drop or mask content you already receive, attach a
Data Flow to your OpenTelemetry input. Remove
the fields gen_ai.input.messages, gen_ai.output.messages and
gen_ai.system_instructions (and gen_ai.prompt and gen_ai.completion if
your instrumentation uses the older names), or mask them to keep a
placeholder. The flow runs before storage, so the text is never stored.
Efficiency
The Efficiency section of the Overview, and the Efficiency dashboard, show how economically your calls use tokens and time:
| Figure | What it tells you | Read from |
|---|---|---|
| Cache hit rate | Input tokens the provider's prompt cache served, as a share of all input tokens. Cached tokens are cheaper and faster, so a falling rate costs money on every call. | gen_ai.usage.cache_read.input_tokens over gen_ai.usage.input_tokens, or over both together for a call whose provider, such as Anthropic, counts cache reads apart from input tokens |
| Tokens per call | Average prompt and reply size. A prompt that keeps growing is often a conversation history or retrieved context nobody trims. | gen_ai.usage.input_tokens, gen_ai.usage.output_tokens |
| Output speed | Output tokens per second of call time, per model. | Output tokens and span duration |
| Calls per request | Model calls per trace that made any. More round trips mean more latency and more tokens for one answer. | Calls and trace ids |
| Truncated replies | Replies that stopped at the token limit rather than finishing. | gen_ai.response.finish_reasons of length or max_tokens |
Cache figures appear once your instrumentation reports cache usage. Most OpenAI and Anthropic instrumentations do; a provider with no prompt cache reads as zero.
Quality
The Quality section of the Overview, and the Quality and Agents & Tools dashboards, show whether your calls do their job:
- Agent run success: agent runs that ended without an error, with the slowest runs' duration.
- Tool failure rate: tool calls that failed, overall and per tool. A tool that fails often sends the agent round again.
- Guardrail blocks: model calls a provider's safety filter or guardrail
blocked, either a prompt refused outright (a failed call whose
error.typeiscontent_filter) or a reply stopped part way (a finish reason ofcontent_filter,refusal,SAFETYand similar, orguardrail_intervenedfrom a Bedrock Guardrail). The Quality dashboard breaks them down by provider, model, service and reason. A guardrail your application runs itself, outside the model call, has no OpenTelemetry convention yet, so it is not counted. - Rejected prompts: the prompts refused outright, on their own, with their share of model calls. The Quality dashboard charts them over time by model.
- Failures by error type: failed calls split by
error.type, so a rate limit, a timeout and an outage each read as what they are. - Finish reasons: why each reply ended.
- Evaluations: each evaluation's results, average score and labels, from the events described in Evaluation scores.
From a number to the records behind it
When the Overview shows a problem, select it to see what caused it. Error rate, Truncated replies, Guardrail blocks, Rejected prompts and Tool failure rate open the Log Explorer on exactly the calls they counted, over the same time range. Agent run success opens Agent Runs showing only the failed runs. In the usage table, an Error rate above zero opens the failed calls for that model, provider, service or kind of call. On a model's own page every one of these stays limited to that model, and Agent runs lists the runs that used it. The Overview and each model's page keep the time range in the page's address, so going back from the Log Explorer, reloading or sharing the link opens the same range.
Dashboards
Dashboards under AI in the navigation lists the four dashboards that ship with the add-on:
- Usage: calls, tokens and latency per model, service and kind of
call, and the
gen_ai.client.operation.durationmetric when you send it. - Efficiency: cached and uncached input tokens, tokens per call by model, output speed by model, truncated replies, and an efficiency table per model and service.
- Quality: error rate, failures by error type, finish reasons, guardrail blocks by model and reason, tool failures, failed agent runs and evaluation scores over time.
- Agents & Tools: runs, success rate and duration per agent, calls and duration per tool, conversations and the longest ones.
Each has Service and Model filters. They are read-only; Duplicate adds an editable copy to your own dashboards. Favourite adds one to your sidebar and Hide takes it off your own list, the same as the OpenTelemetry dashboards. Every panel opens in the Log Explorer with its query.
Agent runs
Agent Runs under AI in the navigation lists recent traces that contain GenAI spans, newest first: the agent's name (or a short trace id), the models and services involved, how many model and tool calls it made, its tokens, duration and whether it succeeded or failed. Filter by service, model and outcome, and pick any time range. A run fails when any of its GenAI spans ended in an error. Select the Success rate figure to show only the failed runs, and again to show them all. The filters and time range are kept in the page's address, so reloading, going back from a run or sharing the link opens the same list.
Open a run to see it step by step:
- Totals for the run: model calls, tool calls, tokens, estimated cost, duration and failed steps.
- A map of the steps, in the order they started, each nested under the step that called it: an Agent, a Model call or a Tool call. Select a step to open its details in a panel on the right: model, provider, tool name, tokens, estimated cost, latency, status and finish reason. A failed step is marked and shows its error.
- The prompt, reply, tool arguments and tool result for a step, when the stored span carries them. When it does not, the step says the content was not kept, rather than showing an empty box.
- Open in trace view shows the same trace as a waterfall with every other span and its logs. From a trace that holds GenAI spans, Open as agent run comes back.
Alerts
Alert Rules under AI in the navigation opens the AI alerts. They are all switched on when you turn the add-on on, and notify your default notification groups. Switch off any you do not want; one you switch off stays off. An enabled alert evaluates, opens incidents and notifies like any other alert, but it belongs to the add-on rather than to your own alert rules. Open an alert to change when it fires, how often it evaluates, who it notifies and how its incidents behave, and reset any of that to the default. Alert settings sets the incident behaviour and notification destinations every AI alert shares, unless you give one its own.
Two alerts are measured from your own last 7 days of model calls, and keep following them: the spend alert prices the models you call, so a model you start using later is added on its own, and "far above normal" tracks your average call size. Your threshold and other settings are kept.
| Alert | Fires when | Severity |
|---|---|---|
| Estimated model spend over a daily budget | The estimated cost of model calls over the last 24 hours is above your budget, $50 to start. Set the threshold, in US dollars, to your own budget. | Medium |
| Tokens per call far above normal | More than 5 calls in 15 minutes each use more than four times your average tokens per call over the last 7 days (50,000 tokens with no history yet), per service. | Medium |
| Model call error rate | More than 10% of a service's model calls fail over 15 minutes, for 5 minutes in a row. | High |
| Model calls rate-limited | More than 10 calls in 15 minutes are refused with HTTP 429 or a rate-limit error, per provider. | Medium |
| Agent runs ending in an error | An invoke_agent span ends with an error status, per service. | Medium |
The spend alert works out a cost for each call from its tokens and the model's public list price, and adds those costs up. Until you have called a model with a known price, it matches every priced model by name. The budget is daily: an alert looks back over at most 24 hours, so a monthly budget is not available yet. The estimate leaves out discounts, batch and cached-token rates, as described below.
A running AI alert is also listed on the Alerts Overview, where it can be snoozed. Turning the add-on off hides the alerts; nothing you configured is deleted, and it all comes back when the add-on is turned on again.
You can also alert on any other number on these pages: run its query in the Log Explorer and choose Create Alert to start a rule from it.
These are other alerts teams add, each a query you can open in the Log Explorer and turn into a rule with Create Alert:
| Alert | Query | Fires when |
|---|---|---|
| Replies cut off at the token limit | _signal=span gen_ai.request.model=* (gen_ai.response.finish_reasons=*length* OR gen_ai.response.finish_reasons=*max_tokens*) | More than a handful in an hour, the sign of a max_tokens set too low or a prompt asking for too much. |
| Prompt cache hit rate falls | _signal=span gen_ai.request.model=* | eval cached = coalesce(gen_ai.usage.cache_read.input_tokens, 0), input = coalesce(gen_ai.usage.input_tokens, 0) | eval read = if(cached - input > 0, input + cached, input) | stats sum(cached) AS cached, sum(read) AS read | eval cache_hit_pct = cached * 100 / read | The rate over an hour drops below your usual level, often after a change to the start of the prompt. |
| Guardrails block more than usual | _signal=span gen_ai.request.model=* (gen_ai.response.finish_reasons=*content_filter* OR gen_ai.response.finish_reasons=*refusal* OR gen_ai.response.finish_reasons=*safety* OR gen_ai.response.finish_reasons=*guardrail_intervened* OR error.type=*content_filter*) | More than your usual number in an hour: a prompt change, a new kind of user input, or misuse. |
| Prompts rejected by a safety filter | _signal=span gen_ai.request.model=* error.type=*content_filter* span.status_code=ERROR | More than your usual number in an hour: users sending content the filter blocks, or a system prompt that now trips it. |
| Evaluation scores drop | gen_ai.evaluation.name=relevance | stats avg(gen_ai.evaluation.score.value) AS avg_score | The average over an hour falls below your threshold. |
About the cost estimate
Spans carry token counts, not prices. The cost shown is tokens times the
model's public list price per million tokens, from a price list we keep with
the product, and the date it was last checked is behind the i beside every
estimated cost.
It does not include discounts, batch or cached-token rates, or cloud-partner
pricing. A model with no known price is left out of the estimate and counted
separately, never guessed. Your provider's bill is the exact figure.
Tenant Isolation & Data Boundaries
The ingest key decides which workspace a GenAI span lands in, as it does for every other span; nothing in a span can name another workspace. The AI pages read only the signed-in workspace's own spans, through the same workspace-scoped queries as the Log Explorer, and a trace id from another workspace is simply not found. Prompt and reply text is stored only if your instrumentation sends it, and is visible only to your workspace. See Tenant Isolation for the full model.