Teams should instrument LLM applications at the request and span level, then filter telemetry to what matters for generative workloads. Track latency, token usage, model parameters, and route metadata so you can correlate behavior with outcomes. The goal is not raw volume of traces, but usable observability that supports debugging, optimisation, and safer operation.
Instrument for request-level signal, not raw trace volume
LLM observability works best when teams treat a single request or span as the unit of analysis, then attach only the fields that explain model behaviour and user impact. That usually means latency, token counts, model and route metadata, prompt or tool path identifiers, error class, and a small set of outcome markers. The point is to make each event useful for diagnosis, not to turn every interaction into a high-cardinality dump.
That design choice matters because generative workloads produce a lot of noisy, repetitive telemetry. A full-fidelity capture of every token, intermediate step, and downstream call is rarely the fastest way to understand quality, cost, or failure patterns. Instead, teams should standardise the minimum fields needed to correlate performance with the specific model, prompt, tool, or route that produced it, then keep anything else behind sampling or on-demand debug paths.
- Instrument at the boundary where the request enters and exits the LLM workflow.
- Keep core dimensions stable so dashboards and alerts do not fragment by prompt variation.
- Separate durable observability fields from ephemeral debug payloads.
If your trace model cannot answer “what changed?” without exposing large prompt bodies or verbose intermediate logs, the instrumentation is too heavy for routine operations.
Control cardinality and sampling so telemetry stays actionable
The central operational problem is not whether to observe LLM applications, but how to avoid making observability itself expensive and unreadable. Cardinality explodes quickly when teams log entire prompts, long conversation histories, dynamic tool arguments, or free-form metadata. Once that happens, the system becomes difficult to query, costly to retain, and much harder to use for regression analysis.
Practical instrumentation uses selective sampling and normalisation. Capture stable labels for model version, route, tenant or application, and coarse request class, then aggregate the rest. Use higher-fidelity traces only for failures, slow requests, evaluation samples, or explicitly flagged investigations. That gives you enough detail to compare runs and spot drift without forcing every request into deep inspection.
For teams that need a deeper structure for LLM-specific instrumentation, OWASP Top 10 for Agentic Applications 2026 is useful because it treats agent and tool behaviour as something that can be modelled and reviewed rather than merely logged.
- Sample aggressively for healthy traffic, and retain richer traces for errors or anomalous latency.
- Normalise metadata values so “model-1”, “Model 1”, and “v1” do not become separate analysis buckets.
- Keep prompt and tool payload capture behind access controls and retention limits.
What good LLM observability should prove
Useful telemetry should support three decisions: whether the application is performing as expected, whether a change improved or degraded outcomes, and whether an anomalous request path needs closer inspection. That means the instrumentation must connect performance data to the model version, prompt pattern, retrieval path, tool call, or route that produced it. Without that linkage, latency graphs and token charts are only surface metrics.
Teams usually get the best signal when they pair runtime telemetry with evaluation data, rather than trying to infer quality from traces alone. For example, a route that is fast but produces frequent retries, low-confidence outputs, or inconsistent tool use may be operationally worse than a slower but stable path. The observability design should therefore make it easy to correlate runtime behaviour with offline evaluation and release changes.
When the application includes autonomous or tool-using behaviour, NIST AI Risk Management Framework helps anchor the broader governance view, while OWASP Top 10 for Agentic Applications 2026 helps teams think about tool use, goal drift, and other behaviour that simple application logs can miss.
Practitioner Guidance: Decide up front which questions telemetry must answer, then instrument only the fields that support those questions at scale. If a field does not help you debug, compare, or explain a meaningful change in behaviour, it belongs in sampled debug traces or not at all.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST AI RMF | Govern | GenAI monitoring needs accountable measurement and oversight of model behaviour. |
| Recommendation — Define observability ownership and review telemetry against AI risk objectives. | ||
| OWASP Agentic AI Top 10 | Telemetry and Observability | Agentic apps need focused logging that avoids noisy, high-cardinality trace data. |
| Recommendation — Instrument only the request and tool fields that explain agent behavior. | ||
| NIST CSF 2.0 | DE.CM — Continuous Monitoring | LLM runtime telemetry is a monitoring capability that must remain actionable. |
| Recommendation — Tune monitoring to detect meaningful performance and security deviations. | ||
| CIS Controls v8 | 8.2 — Audit Log Collection | Selective collection and retention are central when logging LLM request activity. |
| Recommendation — Collect only the log fields needed for investigation and operational analysis. | ||
Related resources from NHI Mgmt Group
- How should teams instrument Java LLM applications for observability without rebuilding their monitoring stack?
- What happens when teams run LLM applications without telemetry?
- How should teams monitor LLM applications beyond uptime and error rates?
- How should security teams monitor tampering in mobile apps without drowning in alerts?