Join our Newsletter — 33% off our NHI Course

What do teams get wrong about observability when they focus only on LLM request logs?

The common mistake is treating LLM request logs as complete observability. For production AI, the important context often sits outside the model call, including vector search, prompt assembly, tool selection, and downstream business logic. If teams cannot trace those steps, they may misdiagnose quality problems, miss regressions, and build controls that do not reflect actual application behaviour.

Why This Matters for Security Teams

LLM request logs are useful, but they only capture one slice of the system. When teams assume the model call is the whole observable surface, they miss the context that determines whether the answer was shaped by retrieval quality, prompt construction, tool execution, or business-rule failures. That gap matters for incident response, model governance, and root-cause analysis. Guidance from the NIST AI Risk Management Framework makes clear that AI risk is not limited to output text; it also includes the surrounding lifecycle and operational context.

The practical risk is that teams build confidence in the wrong telemetry. A clean request log can still hide poisoned retrieval sources, malformed system prompts, weak tool constraints, or a downstream workflow that converts an acceptable answer into a harmful action. For agentic systems, this is even more important because the observable unit is not just the prompt and completion, but the chain of decisions and actions that followed. In practice, many security teams encounter the failure only after a user complaint, a bad business outcome, or an incident review reveals that the “AI problem” was actually a visibility problem.

How It Works in Practice

Effective observability for LLM applications needs to trace the full request path, not just the model API call. That means correlating user intent, prompt assembly, retrieval inputs, model parameters, tool calls, intermediate outputs, policy checks, and final business actions. The OWASP Agentic AI Top 10 and NIST AI 600-1 Generative AI Profile both point toward the need for lifecycle-aware controls, where logging supports governance, validation, and incident handling rather than simple transcript retention.

In practice, teams should think in terms of structured spans or traces across components:

  • Prompt inputs, including retrieved passages and system instructions
  • Retriever behaviour, such as query rewriting, vector store hits, and ranking results
  • Tool selection and execution, including arguments, responses, and approvals
  • Policy enforcement, including guardrail decisions and blocked actions
  • Outcome telemetry, including user-visible response and downstream system effects

This model helps distinguish model hallucination from retrieval failure, orchestration defects, or tool misuse. It also supports better detection of prompt injection and supply-chain issues, because the logs show where untrusted content entered the chain. The MITRE ATLAS adversarial AI threat matrix is useful here because it frames how attackers may manipulate data, prompts, or model behaviour at multiple stages, not only at inference time. These controls tend to break down when organisations have distributed microservices with no shared trace IDs, because the system cannot reconstruct which retrieval, prompt, or tool step produced the final action.

Common Variations and Edge Cases

Tighter observability often increases telemetry volume and privacy exposure, so organisations have to balance forensic depth against data-minimisation and retention constraints. Best practice is evolving here: there is no universal standard for exactly which intermediate artifacts must be stored, and the right answer depends on risk, regulation, and the sensitivity of prompts or retrieved content.

Some environments need more than basic traces. In regulated workflows, teams may need immutable audit records for tool approvals and human overrides. In customer-facing systems, they may need redaction of personal data while still preserving enough context to investigate failures. In agentic systems, the observability boundary should extend to autonomous actions, because request logs alone do not show why the agent called a tool or what it changed.

There is also a tradeoff between observability and integrity. Logging too much can create a new attack surface if secrets, tokens, or sensitive retrieval results are exposed. Logging too little leaves blind spots. Mature teams define observability tiers: operational traces for every request, enriched traces for high-risk paths, and limited capture for low-risk or privacy-sensitive flows. The CSA MAESTRO agentic AI threat modeling framework is a useful reference for deciding which agent actions need higher-fidelity telemetry and stronger review. Teams lose the value of observability when they capture transcripts but cannot tie them to retrieval, tool, and policy state.

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, MITRE ATLAS and CSA MAESTRO address the attack and risk surface, while NIST AI RMF and NIST AI 600-1 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST AI RMF GOVERN AI observability must support governance, accountability, and risk oversight.
NIST AI 600-1 GenAI profile stresses lifecycle visibility beyond raw model outputs.
OWASP Agentic AI Top 10 Agentic systems need visibility into tool use and autonomous actions.
MITRE ATLAS AML.TA0001 Adversarial AI threats can target prompts, retrieval, and model outputs.
CSA MAESTRO MAESTRO addresses threat modeling for agentic AI control paths and actions.

Define ownership for AI telemetry, review gaps, and make observability part of governance.