tools for LLM app monitoring
Summary
- LLM app monitoring has to answer three questions at once: is the app up and responsive, what is it consuming, and are its answers any good.
- No single tool covers all three, so the stack is layered: tracing inside the app, usage records at the model gateway, and quality scores plus user feedback attached to traces.
- User feedback is only useful when it's tied to the exact response it rates, so log it against the trace ID rather than in a separate table.
- Open-source MLflow covers tracing, feedback logging with
mlflow.log_feedback()and LLM judges, and it speaks OpenTelemetry. - On Databricks, Unity Gateway records latency, tokens and status for every governed model request in a system table, and MLflow traces, feedback and judge results can live in Unity Catalog.
tools for LLM app monitoring
Monitoring an LLM app means watching three things together: whether it's up and responsive, what it's consuming in tokens and spend, and whether its answers are correct, grounded and safe. Traditional application monitoring handles the first. The other two need LLM-specific tools: tracing inside the app, usage records at the model gateway, and quality scores and user feedback attached to each trace. Choose tools that land all of it in one queryable place, so a latency spike, a cost jump and a drop in answer quality can be read side by side.
What should you monitor in an LLM app?
| Signal | What to track | Where it comes from |
|---|---|---|
| Latency | End-to-end time, time to first byte for streaming, slow spans | Traces and gateway usage records |
| Errors | Failed requests, tool errors, rate-limit responses | Trace status and gateway status codes |
| Usage and spend | Input and output tokens per request, estimated cost | Trace token usage and gateway usage tables |
| Answer quality | Groundedness, relevance, safety, guideline adherence | LLM judges run on sampled traces |
| User feedback | Thumbs up or down, comments, corrections | Feedback logged on the trace |
| Conversation health | Frustration and unresolved sessions | Session-level judges over multi-turn traces |
Key capabilities to evaluate
- Instrumentation that stays out of the request path. Asynchronous trace logging and sampling, so monitoring doesn't add latency.
- Context on every request. User, session and app version on each trace, so you can segment problems.
- Coverage of every model call. A gateway sees calls from all your apps, including ones nobody instrumented.
- A feedback API tied to traces. Ratings should reference the trace they judge.
- Online quality scoring. The judges you trust in testing, running on live traffic.
- Dashboards and alerts on SQL. So operators can define thresholds without a separate tool.
- Access control on payloads. Prompts and responses can contain personal data, so reads need permissions.
Capturing user feedback with MLflow
Open-source MLflow records feedback as an assessment on a trace. mlflow.log_feedback() takes the trace ID, a name, a value, an optional rationale and an AssessmentSource whose type is HUMAN, LLM_JUDGE or CODE. In the request handler, mlflow.get_last_active_trace_id() returns the ID to send back to the client.
import mlflow
from mlflow.entities import AssessmentSource, AssessmentSourceType
def record_rating(trace_id: str, user_id: str, thumbs_up: bool, comment: str = ""):
mlflow.log_feedback(
trace_id=trace_id,
name="user_satisfaction",
value=thumbs_up,
rationale=comment,
source=AssessmentSource(
source_type=AssessmentSourceType.HUMAN, source_id=user_id
),
)
Because feedback lives on the trace, a thumbs-down opens straight into the spans that produced the answer. MLflow also tracks input, output and total tokens for each LLM call, rolled up per trace, and can estimate cost per call in recent versions.
How Databricks approaches LLM app monitoring
MLflow on Databricks is the same open-source MLflow, managed, so feedback and tracing code carries over. The platform fills in the gateway and serving layers:
- Agents on Model Serving.
agents.deploy()logs agent interactions to an MLflow experiment in real time, creates inference tables that log requests and responses, and sets up the Review App for stakeholder feedback. - Unity Gateway usage records. Unity Gateway is generally available. Its
system.ai_gateway.usagesystem table captures each request to model services, model provider services and MCP services, with columns such aslatency_ms,time_to_first_byte_ms,input_tokens,output_tokens,status_codeandrequest_tags. A separatesystem.ai_gateway.external_model_spendtable stores estimated spend for external models, aggregated hourly. - Reliability controls. Rate limits on model and MCP services return HTTP 429 when exceeded, and fallbacks retry a failed request against backup destinations in an order you define.
- Quality on live traffic. Production monitoring, in Beta, runs registered scorers on a configurable sample of incoming traces and attaches the results as feedback.
- One place to look. Traces stored in Unity Catalog, usage system tables and inference tables are all queryable with SQL, so AI/BI Dashboards and alerts can combine them.
See Unity Gateway observability and collect feedback.
FAQs
What's the difference between LLM app monitoring and LLM monitoring?
LLM monitoring watches the model calls: usage, latency, errors and output quality per request. LLM app monitoring covers the whole application around them, including retrieval, tool calls, conversation flow and what users say about the answers.
How do I tie user feedback to a specific response?
Return the trace ID with the response, then log the rating against that ID with mlflow.log_feedback(). The rating then sits on the same record as the prompt, retrieved context and tool calls.
Which latency number matters most?
For streaming chat, time to first byte shapes what users feel. For agents, end-to-end time and the slowest span matter more. Unity Gateway records both latency_ms and time_to_first_byte_ms.
If I evaluate before release, do I still need production monitoring?
Yes. Live users ask questions your test set never covered, so quality can drift even when the code hasn't changed.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.