Your server just returned a 200 OK, your latency is low, and your traffic is steady. But your user just received a confident, hallucinated lie that leaked their credit card number. In the world of Generative AI, your application can be 'up' and still be completely broken.
The Simple Version
Imagine you are running a traditional restaurant. You monitor how fast the food comes out (latency), if the kitchen is on fire (errors), and how many customers are in the seats (traffic). If these are fine, you assume the restaurant is successful.
Now, imagine the restaurant starts serving 'magic' food that changes its flavor every time a customer orders it. Even if the food arrives on time, it might taste like soap one day and cardboard the next. Or, it might be so expensive to make that you lose money on every plate without realizing it.
In software terms, traditional metrics tell you if your system is running, but they don't tell you how well it is performing its actual job.
How It Actually Works
Generative AI breaks the fundamental assumption of traditional software: predictability. In a standard app, the same input yields the same output. In GenAI, a single prompt can produce a different response every time, making standard regression testing insufficient.
The Three Pillars of GenAI Observability
To bridge this gap, Marina Petzel of Datadog suggests moving beyond the 'LADS' (Latency, Error, Traffic, Saturation) framework and adopting three new specialized layers.
1. Cost Monitoring
Unlike traditional compute costs, which scale linearly with usage, LLM costs are highly dynamic. Petzel identifies three major drivers that can cause spending to spiral out of control:
- Token Creep: This occurs when engineers increase the context window to improve quality without a financial review. Expanding a context window from 4,000 to 32,000 tokens can result in up to an 8x cost increase.
- Model Drift: Switching from a fast, cheap model (like Haiku) to a powerhouse (like Opus) can increase costs by as much as 15x per request.
- Uncached Calls: Without an effective caching layer, your system may pay for the same expensive completion repeatedly. Datadog research suggests that up to 70% of spend can be redundant due to these repeated calls.
2. Safety Metrics
Security in GenAI isn't just about preventing SQL injections; it's about managing the behavior of the model itself. New attack vectors require new guardrails:
- Prompt Injection: Detecting attempts to manipulate the model via user prompts.
- PII Leakage: A zero-tolerance issue where models might output sensitive data like social security numbers. The target for production output should be 0%.
- Jailbreaking: Users attempting to bypass safety guardrails through elaborate scenarios.
3. Quality Monitoring
Quality in GenAI is subjective and exists on a spectrum. As Petzel notes, "a 200 OK response from your server doesn't necessarily mean that the answer was helpful or correct for your final user." Key metrics include:
- Hallucination Rate: The percentage of responses containing claims unsupported by grounded data.
- Relevance Score: Using embedding similarity to see if the answer actually addresses the user's intent.
- RAG Retrieval Quality: For Retrieval-Augmented Generation systems, tracking if the documents fetched were actually relevant to the query.
Technical Deep Dive
For developers building production-grade LLM systems, observability must be granular. Petzel advocates for a four-level tagging strategy to make cost and performance data actionable. This isn't just about knowing that you spent money, but why you spent it.
First, implement Feature-level tagging. By tagging the intent (e.g., 'summarization' vs. 'chat'), you can identify which product features are the primary budget drivers. Second, use User-level tagging (User ID or Org Name) to enable accurate chargebacks and identify abusive usage patterns that drain budgets.
Third, Model-level tagging (e.g., tagging 'GPT-5.5' or 'Claude 3.5 Sonnet') allows you to benchmark the true expense and performance of different providers. Finally, Endpoint-level tagging (e.g., 'production' vs. 'staging' or specific geographic regions) helps with infrastructure planning and understanding regional cost variations.
When evaluating quality, the industry is moving toward LLM-as-a-Judge patterns. This involves using a highly capable model to evaluate the completeness and accuracy of a smaller, faster model's output. This allows for automated, continuous quality evaluation that mimics human judgment, which is essential when manual review doesn't scale.
Why This Matters
The shift from deterministic software to probabilistic AI means the definition of "reliability" has changed. In the past, a reliable system was one that didn't crash. Today, a reliable system is one that is cost-effective, safe, and factually accurate.
Without these new metrics, companies face "cost outages" where monthly bills exceed budgets by thousands of dollars due to unmonitored token usage. More importantly, they face reputational risks when models leak PII or provide confidently incorrect information to customers.
As GenAI matures, the competitive advantage will move away from those who can simply prompt a model, and toward those who can build observable, controllable, and safe AI workflows.