LLM Monitoring: tokens, duration and errors per model

Obseria reads the model calls of your services from OpenTelemetry spans and shows tokens, duration and error rates per model, inside the trace of the request that made the call.

Data sources with 29 AI agents, frameworks and model APIs
Span explorer with database, HTTP and model calls per request
Model performance: calls read via gen_ai.request.model
Source
OpenTelemetry spans with gen_ai.request.model
Per model
Tokens, duration and error rate
Instrumentation
OpenAI and Anthropic set the attribute on their own
Catalog
29 AI agents, frameworks and model APIs with guides
Product tour

How your team works with LLM Monitoring

From the setup guide to the alert: these views come straight from the Obseria app. Views without data yet show the setup step you start with.
01 / 05

A setup guide for your model SDK

The catalog lists AI agents, frameworks and model APIs such as OpenAI, Anthropic, LangChain and Amazon Bedrock, each with a guide.

  • Filter by collection
  • Search by technology
  • Based on OpenTelemetry
A setup guide for your model SDK
02 / 05

Tokens, duration and errors per model

Model calls are read from spans via gen_ai.request.model. Without data yet, the view links to the LLM instrumentation guide.

  • Filter by model or service
  • Selectable time range
  • OpenAI and Anthropic set the attribute
Tokens, duration and errors per model
03 / 05

The model call inside the request

Model calls are spans, so they appear in the span explorer next to database queries and HTTP calls of the same request.

  • Errors and slow requests
  • Slower than p95 filter
  • Error groups and service map
Learn more
The model call inside the request
04 / 05

AI spend by model and team

Spend, adoption and output of connected coding agents, with model comparison, failures and recent calls under requests.

  • Spend by model, person and team
  • Model comparison
  • Failures and recent calls
Learn more
AI spend by model and team
05 / 05

Problems with severity and affected entity

Check rules on error rates and durations create problems and notify the team through its channels.

  • Rules on any metric
  • Error rate and latency p99
  • Slack, Teams, PagerDuty, email
Learn more
Problems with severity and affected entity
Capabilities

What LLM monitoring in Obseria includes

Model calls measured with the OpenTelemetry GenAI conventions, next to the traces, costs and alerts of the services that make them.

LLM monitoring

Measures calls to language models: tokens, duration and error rates per model.

Distributed Tracing

Distributed Tracing

Follows a request across all involved services and shows where the time is lost.

Learn more →
Alerting

Alerting

Rules that alert on thresholds or patterns and send notifications.

Learn more →

AI observability

Monitors AI applications: model requests, responses, latency, errors and costs.

  • AI cost analytics
How it works

From the first instrumented call to a model decision

Five steps from instrumenting your model SDK to acting on what the data shows.
  1. SDK instrumented
    01

    Instrument

    Add the OpenTelemetry instrumentation for the OpenAI or Anthropic SDK, or a framework that follows the GenAI conventions, to the service that calls models.

  2. gen_ai.request.model
    02

    Send

    Spans with gen_ai.request.model and token usage reach Obseria over OTLP, like the rest of your telemetry.

  3. model-a1.2 s
    model-b2.3 s
    model-c3.2 s
    Example · p95 duration
    03

    Compare models

    Tokens, duration and error rates per model show which model is slow, which one is expensive and which one fails.

  4. SPAN
    chat example-modelsupport-bot · 4.8 s of 5.3 s
    Model is the slow part
    04

    Trace the call

    Open the trace of a slow or failing request to see the model call next to its database queries and HTTP calls.

  5. Alert: 429 rate limits rising
    05

    Alert

    Check rules on error rates or durations notify the team, for example when a provider starts returning rate limits.

In depth

How LLM monitoring works

Model performance

Every model your services call, measured

The model view lists the language models your services call, identified by the span attribute gen_ai.request.model. Per model it shows tokens, duration and error rates for the selected time range, for example the last 30 days.

A filter narrows the view to one model or one service, which helps when several features use the same model, or one feature tries several models. Comparing models on the same data makes decisions concrete: is the smaller model fast enough, and does the newer version fail more often?

When nothing has arrived yet, the view says so plainly and links to the LLM instrumentation guide instead of showing empty charts.

  • Models identified by gen_ai.request.model
  • Tokens, duration and error rate per model
  • Filter by model or service
  • Selectable time range
Open standard

Built on the OpenTelemetry GenAI conventions

Obseria does not need a proxy in front of your model provider or a wrapper around your SDK. It reads what OpenTelemetry already records: the instrumentations for the OpenAI and Anthropic SDKs set gen_ai.request.model and token usage on their own, and frameworks that follow the GenAI semantic conventions work the same way.

The technology catalog in the app lists 29 AI agents, frameworks and model APIs with setup guides, including Amazon Bedrock, Azure OpenAI, Google Gemini, Vertex AI, Mistral AI, LangChain and LlamaIndex.

Because the instrumentation is plain OpenTelemetry, you keep it if you ever change your backend.

  • No proxy and no SDK wrapper
  • OpenAI and Anthropic instrumentations
  • Frameworks with GenAI conventions
  • 29 AI technologies with setup guides
Tracing

The model call inside the request

A model call rarely stands alone. It is part of a request that also reads from a database, fetches context and calls other services. Because Obseria records model calls as spans, they appear in the distributed trace of that request.

In the span explorer you filter by errors, duration or requests slower than p95 and see the model call next to database queries and HTTP calls. That answers whether a slow answer was caused by the model or by the retrieval step before it.

Error groups and the service map show which services call models and how failures spread.

  • Model calls as spans in the trace
  • Next to database and HTTP calls
  • Filter by errors, duration or p95
  • Error groups and service map
Costs & alerts

From measurement to action

Tokens are the basis of AI spend. AI cost analytics breaks the costs of your model calls down by model, feature and customer, so you see which feature drives the budget and what serving a customer costs.

Check rules turn the same data into alerts. A rising error rate for one model, longer durations after a model switch or unusual token growth create a problem with severity and affected entity and notify the team through Slack, Microsoft Teams, PagerDuty, email or a webhook.

Workflows can react as well, for example by creating a Trello card that follows the problem until it is resolved.

  • Costs by model, feature and customer
  • Alerts on error rate and duration
  • Slack, Teams, PagerDuty, email, webhook
  • Trello cards for follow-up
Integrations

Model APIs and frameworks

Setup guides for model providers and AI frameworks, all based on OpenTelemetry and the GenAI semantic conventions.
  • OpenAI
  • Anthropic API
  • Azure OpenAI
  • Amazon Bedrock
  • Google Gemini
  • Vertex AI
  • Mistral AI
  • Ollama
  • LangChain
  • LlamaIndex
  • Vercel AI SDK
  • OpenTelemetry
Guide

LLM monitoring explained

What LLM monitoring is

LLM monitoring is the continuous measurement of the calls your applications make to large language models. For every call it records which model was requested, how long the call took, how many tokens went in and came out, and whether it failed. Collected over time, these figures show how your AI features behave in production: which model is slow, which one is expensive, and when a provider has problems.

LLM monitoring is one part of the wider field of AI observability, which also covers coding agents, AI costs and the assistants your team uses. This page is about the concrete model calls inside your own services.

Why language model calls need their own monitoring

A call to a model API behaves differently from a database query or a regular HTTP call:

  • Latency varies widely. The duration depends on the model, the prompt length and the length of the answer. A few seconds can be normal, and the slow tail matters more than the average.
  • Cost depends on tokens. A longer prompt, a bigger retrieved context or a loop in an agent increases spend without any change in your infrastructure.
  • Errors come from outside. Rate limits, overloaded providers and timeouts are part of daily life with model APIs, and they often show up first as rising error rates for one model.
  • Models change. Switching to a new model version can change duration, token usage and failure rate at once.

Without measurement, teams notice these effects through user complaints or at the end of the month on the invoice.

Key LLM metrics

  • Requests per model and their course over time.
  • Duration, ideally as percentiles such as p50 and p95, not only the average.
  • Input and output tokens per model and per request.
  • Error rate per model, with the type of error, for example rate limits or timeouts.
  • The calling service and request, so a slow answer can be traced back to the feature that triggered it.

OpenTelemetry and the GenAI conventions

OpenTelemetry defines semantic conventions for generative AI. A model call is recorded as a span with attributes such as gen_ai.request.model for the requested model and token usage for input and output. Instrumentation libraries for the OpenAI and Anthropic SDKs set these attributes on their own, and many frameworks follow the same conventions. Using the standard keeps your instrumentation independent of any monitoring vendor.

Best practices for LLM monitoring

  1. Instrument at the SDK level. Use the OpenTelemetry instrumentation for your model SDK instead of hand-written timing code.
  2. Keep calls inside the trace. A model call is most useful as a span in the trace of the request that triggered it, next to database and HTTP calls.
  3. Compare models on the same data. Duration, tokens and error rate side by side make model decisions concrete.
  4. Alert on error rate and unusual growth. Rising failures for one model or an unusual increase in tokens should reach the team within hours.
  5. Be deliberate about content. Prompts and answers can contain personal or confidential data. For most monitoring questions, model, tokens, duration and errors are enough.

How LLM monitoring works in Obseria

Obseria reads model calls from the spans your services already send:

  • Model performance: calls are identified by gen_ai.request.model. Per model you see tokens, duration and error rates, and you can filter by model or service and choose the time range.
  • Inside the trace: because model calls are spans, they appear in the distributed trace of the request that made them, in the same span explorer as database queries and HTTP calls.
  • Setup guides: the technology catalog lists 29 AI agents, frameworks and model APIs, including OpenAI, Anthropic, Amazon Bedrock, Azure OpenAI, Google Gemini, Vertex AI, Mistral AI, LangChain and LlamaIndex, each with a guide.
  • Costs: AI cost analytics breaks the resulting spend down by model, feature and customer.
  • Alerts: check rules on error rates or durations create problems and notify your channels.

When no model calls have arrived yet, the model view says so and links straight to the LLM instrumentation guide.

Typical problems LLM monitoring reveals

  • Rate limits: a growing share of failed calls for one model, often during peak hours, shows that the quota no longer fits the load.
  • Slow tail: the median looks fine while p95 grows, usually because some prompts or answers became much longer.
  • Silent model changes: a switch to another model version changes duration and token usage overnight.
  • Retrieval overhead: the trace shows that most of the time is spent before the model call, in search or context assembly.
  • Retry storms: errors trigger retries, which double the calls and the tokens without a single extra user request.

Getting started

Pick the service that calls models most often, add the OpenTelemetry instrumentation for its SDK and send the data to Obseria. Check the model view after the first requests, then set an alert on the error rate of your main model and review duration and tokens per model once a week.

FAQ

Questions about LLM monitoring

Answers on features, setup and what is not included yet.
Contact us

LLM monitoring FAQ

Calls to language models from your own services: tokens, duration and error rates per model, with filters by model and service and the call inside the trace of the request that made it.

By the span attribute gen_ai.request.model from the OpenTelemetry GenAI conventions. The OpenAI and Anthropic instrumentations set it on their own.

Any that send OpenTelemetry spans with the GenAI attributes. The technology catalog lists 29 AI agents, frameworks and model APIs with guides, including OpenAI, Anthropic, Amazon Bedrock, Azure OpenAI, Google Gemini, Vertex AI, Mistral AI, LangChain and LlamaIndex.

No. Obseria reads the spans your instrumented services send over OTLP. Nothing sits between your application and the model provider.

Only if your instrumentation records them. For most monitoring questions model, tokens, duration and errors are enough, so decide deliberately whether content is captured. An EU data region is available.

Yes. Check rules on error rates or durations create problems and notify your channels, such as Slack, Microsoft Teams, PagerDuty, email or a webhook.

Coding agents such as Claude Code are covered by their own view for spend, adoption and output. LLM monitoring is about the model calls inside your own applications.

Obseria does not evaluate the quality of model answers: there are no hallucination, toxicity or relevance scores, no prompt playground and no guardrails that block responses or detect prompt injections. Model calls only appear when your services are instrumented with OpenTelemetry.

Contact

See LLM Monitoring in action

In 30 minutes we show you how Obseria works in your environment and answer your questions on setup, privacy and pricing.

  • No obligation, free of charge
  • Usually answered within one business day
  • Data in the EU
Your contact
Your contactObseria team

* Required field. By submitting, you agree to the processing of your details as described in our Privacy Notice