Datadog LLM Monitoring: How to Watch Language Models with Datadog LLM Observability

Datadog LLM Monitoring: How to Watch Language Models with Datadog LLM Observability

Datadog LLM monitoring means using Datadog, and in particular its LLM Observability product, to watch how a language model application behaves in production. Datadog is a full-stack observability platform that already collects metrics, logs, traces and infrastructure data, and its LLM offering adds prompt-level tracing, token and cost tracking, and evaluation of answer quality. The central question is whether one platform can cover both the model and the systems around it, and the answer is that it can, when the application is instrumented to send Datadog the right spans: each model call, its latency, its tokens, its cost and its outcome.

The reason teams look at Datadog for LLM work is usually consolidation. If the team already watches services, databases and queues in Datadog, adding language model telemetry to the same place means one set of dashboards, one alerting system and one place to investigate an incident. The alternative is a separate LLM tool that sees the model but not the infrastructure, which leaves the team switching between systems when something goes wrong.

Key takeaways

  • Datadog LLM monitoring adds prompt-level tracing and quality evaluation to Datadog’s existing observability platform.
  • Track latency, token use, cost, errors and answer quality together, not in separate tools.
  • Instrument each model call as a span, with model name, tokens and outcome attached.
  • Evaluations can run on live traffic or on a sampled set of traces.
  • Keep sensitive prompt content out of traces, or redact it before it leaves your systems.

What Datadog LLM Observability does

Datadog LLM Observability is Datadog’s product for watching language model applications. At its core it records traces of LLM requests: the prompt sent, the response received, the model used, the latency, the number of tokens consumed and the estimated cost. Those traces can be searched, filtered and grouped, so a team can find all the slow requests for one model, or all the requests that used a particular prompt template.

Beyond tracing, the product supports evaluations. An evaluation is a check run over a trace or a set of traces, such as whether an answer stayed faithful to the retrieved documents, whether it contained disallowed content, or whether it matched an expected pattern. Evaluations can run automatically on live traffic or on demand over a sample, and their scores appear alongside latency and cost, so quality becomes a metric like any other.

Datadog also connects LLM traces to the rest of its platform. A slow model call can be linked to the service, host and database queries behind it, and a cost spike can be seen next to the deployment that caused it. That linkage is the main advantage of monitoring LLMs inside a platform the team already uses for everything else. For the broader context, see our guide to LLM observability, which explains why non-deterministic applications need this kind of visibility.

How Datadog LLM monitoring fits a typical stack

A typical setup has three parts. First, the application is instrumented with a Datadog library or an OpenTelemetry integration that creates a span for each LLM call. The span carries the model name, the prompt template, token counts, latency and any error. Second, the spans are sent to Datadog, where they are stored, indexed and made searchable. Third, dashboards, monitors and evaluations are built on top of those spans.

For applications built with common frameworks, Datadog provides integrations that capture LLM calls with little manual code, covering model providers and agent frameworks. For custom applications, the tracing library can be used directly, wrapping each model call in a span and attaching the relevant attributes. The important discipline is consistency: every model call should produce a span with the same set of attributes, so dashboards and filters work across the whole application.

Retrieval and tool use are traced in the same way. A retrieval step becomes a child span of the request, with the number of documents returned and the retrieval latency attached. A tool call becomes another child span, with its success or failure recorded. This gives a complete picture of a request: what was retrieved, what the model was asked, what tools it called and what it answered.

What to monitor: the signals that matter

The first signal group is performance: latency, time to first token where available, request rate and error rate, broken down by model, prompt template and environment. Latency should be shown as percentiles, because an average hides the slow tail that users actually notice. Error rate should separate provider errors, timeouts and refused answers, because each has a different fix.

The second group is usage and cost. Token counts per request, aggregated by model, team and feature, show where spend concentrates. Cost estimates derived from token counts make the bill visible before the invoice arrives, and a cost panel broken down by prompt template often reveals that one verbose template is responsible for a large share of spend. Best for: teams already running Datadog who want token spend visible next to infrastructure cost.

The third group is quality. Evaluation scores, user feedback and the rate of empty or refused answers show whether the application is getting better or worse. Quality should be tracked per prompt template and per model version, because an average across the whole application can hide a single template that has stopped working.

The fourth group is safety: the rate of requests blocked by guardrails, the rate of prompt injection attempts detected, and the rate of answers flagged for harmful or disallowed content. These signals are usually watched by a smaller group, and the underlying traces may need restricted access.

The fifth group is user experience: which features generate the most LLM traffic, how often users retry or abandon a request, and how often a conversation ends after a bad answer. These signals connect monitoring to product decisions, such as which feature to improve first.

Evaluations: turning quality into a metric

Evaluations are the part of Datadog LLM monitoring that most teams underuse. Without them, the platform can say how fast and how expensive the application is, but not whether its answers are good. With them, quality becomes a time series that can be alerted on, compared across model versions and broken down by template.

Start with a small set of evaluations that match the application’s risks. For a retrieval-based assistant, check whether answers stay grounded in the retrieved documents. For a customer-facing assistant, check for disallowed or harmful content and for answers that invent facts such as prices or policies. For a coding assistant, check whether generated code follows the expected pattern or passes a simple test.

Run evaluations on a sample of live traffic rather than on every request, because judging every answer costs tokens and time. A regular sample is enough to spot a trend, and a larger sample can be run when a model or prompt changes. Record the evaluation version alongside the score, because a change in the judge can look like a change in the model. For the wider picture, see our guide to AI observability platforms, which covers what a production platform should actually do.

Comparing Datadog with other LLM monitoring options

Approach Main strength Main weakness Best for
Datadog LLM Observability Model and infrastructure in one platform Cost grows with trace and log volume Teams already running Datadog
Grafana with OpenTelemetry Open standard, one shared dashboard layer Evaluation needs separate tooling Teams already running Grafana
Dedicated LLM observability tool Deep prompt tracing and evaluations Separate platform, no infrastructure view Teams focused mainly on answer quality
Model provider dashboard No setup, accurate token data Only one provider, no custom evaluations Small teams on a single provider

The deciding factor is usually what the team already runs. A team with Datadog everywhere gains the most from adding LLM telemetry to it, because the dashboards, alerts and incident workflow already exist. A team with no Datadog footprint may find a dedicated LLM tool or an open-source stack cheaper and simpler. Either way, the signals being tracked matter more than the brand on the dashboard.

An engineer looking at a large dashboard with charts and traces on a screen
Prompt-level traces let a team move from a falling quality score to the individual requests behind it, including what was retrieved and what the model answered.

Privacy, redaction and access control

LLM traces can contain sensitive material: personal data in a user’s prompt, confidential documents in retrieved context, or secrets pasted by mistake. Before sending traces to Datadog, decide what may leave your systems and what must be redacted. Datadog supports redaction and scrubbing of sensitive patterns, but the safest approach is to avoid sending full prompt and response text unless there is a clear reason, and to restrict access to the traces that do contain it.

Access control matters as much as redaction. Not everyone who can see infrastructure dashboards should be able to read user prompts. Use Datadog’s roles and permissions to limit who can view LLM traces, and keep the audience for safety-related monitors small. Review who has access when the team changes, not just when the system is set up.

Retention is the third control. Traces kept for a month are enough to investigate most reports and to compare model versions; traces kept for a year become a store of user conversations that needs its own governance. Set a retention period, write it down, and check that it is actually applied. Latency deserves the same discipline: see our guide to LLM latency monitoring, which covers measuring what users actually feel.

Datadog LLM monitoring checklist

  • Every model call produces a span with model name, template, tokens, latency and outcome.
  • Retrieval and tool calls are traced as child spans of the request.
  • Latency, error rate and request rate are shown per model and per template.
  • Token use and estimated cost are broken down by model, team and template.
  • A small set of evaluations runs on a regular sample of live traffic.
  • Monitors fire on sustained changes, not on single events.
  • Sensitive content is redacted before traces leave your systems, and trace access is restricted.
  • Trace retention is set, written down and actually applied.
  • Model version changes are treated as releases, with quality and cost watched afterwards.
  • Dashboards and monitors have a named owner who reviews them weekly.

Frequently asked questions

Is Datadog LLM Observability a separate product from Datadog?

It is a product within the Datadog platform, built on the same tracing, metrics and dashboard infrastructure. Teams already using Datadog add LLM telemetry to it, rather than running a wholly separate system.

What data does Datadog need to monitor an LLM application?

Spans for each model call, carrying the model name, prompt template, token counts, latency and outcome, plus child spans for retrieval and tool calls. Evaluations add quality scores on top of those spans.

Can Datadog monitor applications using several model providers?

Yes, provided the instrumentation uses consistent attributes across providers. Spans from different providers can then be shown on the same dashboards, split by model and provider, for comparison of cost, latency and quality.

How much evaluation is enough?

A regular sample of live traffic is usually enough to spot trends, with a larger sample run when a model or prompt changes. Judging every request is rarely worth the cost, and a small, well-chosen set of evaluations beats a large set nobody reviews.

Should full prompts be sent to Datadog?

Only if there is a clear debugging or compliance reason, and only with redaction and restricted access in place. Dashboards and monitors need counts, rates and scores, not the full text of user prompts.

When does Datadog LLM monitoring not fit?

When a team does not already use Datadog, or when its main need is deep prompt-level evaluation rather than a shared operational view, a dedicated LLM tool or an open-source stack may be simpler and cheaper. The signals matter more than the platform.

Latest articles

Scroll to Top