In short
Standard application performance monitoring is not enough for solutions built on the generative AI stack. In this short tech talk, Shirsha Ray Chaudhuri of TR Labs at Thomson Reuters shares the observability gaps she ran into while standing up GenAI solutions: per-user token usage, dataset management, traces linked to user feedback, and prompt management. She closes with a clear priority order that starts with latency, throughput and cost.
Key takeaways
- What do we mean by the performance of a service built with generative AI?
- How do we tie the performance of the solution to product features and capabilities, and hence to business metrics?
- How do we monitor different aspects of the solution across the different needs and stages of the AI solution development lifecycle?
Observability changes with each stage of the lifecycle
Shirsha starts by defining observability for GenAI solutions broadly. It includes tracing, debugging, monitoring and feedback collection, and because a generative AI element is involved, it also covers managing datasets, running evaluations, handling conversational sessions and managing prompts. Without these, she notes, debugging, tracking latency and performing evaluations become difficult.
"Observability is crucial throughout the Generative AI lifecycle." (2:12)
She walks through how the needs grow. At proof of concept, teams want tracing, debugging, conversational sessions and monitoring. During testing, when the GenAI component is integrated with the rest of the stack and checked by automated tests, subject matter experts or beta users, prompt management and evaluation join the list. An MVP adds user feedback, and at general availability teams also collect datasets to improve the solution. The goal shifts as well, from customer delight early on to efficiency later:
"But when the solution is live in production, the observability has a larger role to play and we want to create a solution which is operationally efficient." (4:05)
Where standard observability fell short
The heart of the talk is a candid list of what Shirsha missed. First, capturing usage per user: token usage, feedback and the experience each user has with the API. She explains that this data is what lets a team plan, observe and eventually scale, and spot points of optimization.
Second, managing datasets between testing, referencing, iterating and collecting from the live environment. She argues this belongs inside observability:
"And oftentimes, we don't talk about managing data sets as an element of observability, but perhaps it is because it helps us debug and improve performance." (5:19)
Third, combining traces with user feedback. In her experience, few APM solutions allow this, because user feedback lives at the application level while tracing often sits in a different ecosystem. Finally, prompt management, which may not always need to be part of observability but helps teams simulate causes of failure.
Ethics, trust and privacy belong in monitoring
Shirsha treats ethical considerations as part of what must be observed. Fairness and bias are pillars of responsible AI, and she offers a concrete test:
"What is my solution giving different answer based on the gender of the user?" (6:28)
Security and vulnerability also need watching, with prompt injection attacks as the obvious example. She separates considerations that keep the algorithm in mind from those that keep the human user in mind. On the human side, the aim is building trust, so extending observability tools into feedback classification helps, and tools can also support collaborating with users to build solutions together. Data privacy and audit round this out:
"As we investigate issues, we definitely want customers information to be masked." (7:51)
Why GenAI observability is hard in practice
Shirsha lists the challenges teams face. Model complexity multiplies system complexity, which makes transparent investigation harder. Interpretability and flawed feedback mechanisms make it difficult to correlate behaviour across systems. The tool chain is highly fragmented, so correlating traces, logs, performance and user feedback requires a consistent platform where all of it can be collected and analysed. Alert fatigue is another risk:
"You also don't want alerts for too many trivial issues." (9:15)
She also points to silos and skill gaps between teams, which mean the system requirements for going live with a GenAI solution keep changing.
A priority order for what to watch
To finish, Shirsha distils the talk into a ranked set of observability aspects. Latency, throughput and cost come first, because they are effectively your uptime. Real-time feedback paired with resource utilization, such as per-user token usage, comes next. Third is alert classification along with security and quality, and fourth is tracing scenarios across sub-modules of the AI system. She is careful to explain the reasoning behind ranking security third:
"By no means are we saying security is less important than latency, but what we're trying to say is it's more important to keep a system up and then look at security concerns and prompt injection attacks." (10:09)
She mentions having used Datadog and having seen demos of New Relic, Langfuse and Lakera, and invites the audience to share other tools they recommend in this space.
Watch the talk
Observability for GenAI Apps, Shirsha Ray Chaudhuri, 11 minutes: https://www.womentech.net/video/observability-genai-apps-shirsha-ray
About the speaker
Shirsha Ray Chaudhuri is Director, Research Engineering at TR Labs at Thomson Reuters, where she heads the ML Engineering team in Bangalore and leads the development and deployment of well-architected ML solutions on AWS and other cloud platforms. She is interested in successfully operationalising and sustaining ML solutions in live workloads, and works with communities on AI for good, societal impact projects and tech for diversity and inclusion.
Questions this talk answers
- What does observability mean for a generative AI application?
- How do observability needs change across the GenAI lifecycle?
- What do regular APM tools miss for GenAI apps?
- Which ethical considerations should GenAI monitoring cover?
- How should teams prioritise GenAI observability?
Drafted with AI from the talk transcript. Editor review pending.