Petzel says generative AI responses can vary for the same prompt, so standard regression tests cannot fully assess quality. LLM costs also vary with token use and model choice, while risks such as prompt injection and PII leakage are not captured by ordinary error codes. A successful 200 response does not guarantee a helpful or accurate answer.
Your LLM App Returned 200 OK. It Was Still Wrong.
Speaker
Marina Petzel, a GenAI advocate at Datadog, explains how to monitor generative AI applications at an AI Engineer event.
Petzel describes token creep, model changes, and repeated uncached queries as sources of cost overruns. For example, she says expanding context from 4,000 to 132,000 tokens could cause an eightfold increase, and switching to a more expensive model can raise per-request costs substantially. She recommends tagging by feature, user or organization, model or provider, and endpoint or environment to see where spending comes from.
Petzel recommends tracking prompt injection, PII detection, content moderation, and jailbreak attempts. She describes PII in production outputs as a zero-tolerance issue and says teams should aim to block jailbreak attempts. Pattern matching, classifier models, regex, and named entity recognition are among the methods she mentions.
Petzel suggests monitoring hallucination rate, relevance, user satisfaction, answer completeness, and retrieval quality for RAG systems. She proposes combining manual review with automated fact checks for hallucinations, collecting user feedback through ratings, and targeting 80–85% positive feedback. For retrieval, she names top-K accuracy and normalized discounted cumulative gain as useful metrics.
Petzel says teams should keep tracking latency, errors, traffic, and saturation, while adding cost, safety, and quality metrics for generative applications. She also introduces Datadog's LLM Observability product as a way to assess application health and investigate problems.
Takeaways
- Keep latency, errors, traffic, and saturation metrics, and add cost, safety, and quality monitoring.
- Tag LLM usage by feature, user or organization, model, and endpoint to locate spending drivers.
- Watch context size, model changes, and repeated uncached queries for cost growth.
- Track prompt injection, PII exposure, moderation risks, and jailbreak attempts in production.
- For RAG, assess both answer quality and retrieval quality with appropriate metrics.
Mentioned in this talk
Search inside this talk
What was claimed 10
- works atMarina Petzel works at
Datadog
GenAI advocate“I’m a GenAI advocate here at Datadog”
YouTube Verified2 sources· Talk, Web· archived
- metric
Claude Opus 4.8: More powerful and more expensive example model
“a more powerful and more expensive model, like Opus 4.8”
YouTube Unverified1 source· Talk
- metric
Claude Haiku 4.5: Cheaper and faster example model
“a cheaper and faster model, like Haiku 4.5”
YouTube Unverified1 source· Talk
- metric
Claude Opus 4.8: Can cost 15 times more per request than the cheaper model in the example
“can cost 15 times more per request”
YouTube Unverified1 source· Talk
- featurecost attribution tagging: Tags feature intent, user or organization, model or provider, and endpoint or environment to attribute costs
“tag absolutely everything”
YouTube Unverified1 source· Talk
- metricsafety monitoring: Track prompt injection, PII detection, content moderation, and jailbreak attempts
“what safety metrics can we track?”
YouTube Unverified1 source· Talk
- metricquality monitoring: Track hallucination rate, relevance, user satisfaction, answer completeness, and RAG quality
“We recommend focusing on these five metrics.”
YouTube Unverified1 source· Talk
- metricRAG: Track retrieval quality using measures such as top-K accuracy or normalized discounted cumulative gain
“you should always track the quality of your RAG”
YouTube Unverified1 source· Talk












