You shipped your LLM application. It worked perfectly in staging with a handful of test prompts. Then production traffic hit, and suddenly your users are staring at spinning loaders for eight seconds while the dashboard shows "healthy" green lights. Why? Because traditional web monitoring lies to you when it comes to Large Language Models. A single request might generate 50 tokens, or it might generate 2,000. If you're only watching requests per second (RPS), you're blind to the actual load crushing your GPUs.
Here is the hard truth: LLM Inference Observability is not just about uptime; it is about understanding the variable work inherent in every generation. As of late 2026, the difference between a profitable AI product and one that bleeds cash on idle GPUs often comes down to how well you monitor three specific things: token consumption, queue dynamics, and tail latency. This guide breaks down exactly what to measure, why standard metrics fail, and how to use tools like vLLM and TGI to keep your service fast and affordable.
Why Requests Per Second Is a Lie for LLMs
In a traditional REST API, a request is roughly equivalent to another request. You fetch a user profile; it takes 10ms. You fetch a list of products; it takes 15ms. The work is predictable. LLMs break this assumption entirely. One user asks for a haiku (10 output tokens). Another asks for a Python script to parse CSV files (800 output tokens). Both count as one request, but the second one consumes nearly 80 times more compute resources.
If your autoscaler triggers based on RPS, it will fail during heavy usage spikes. Your system might look stable at 100 RPS, but if those requests average 500 tokens instead of 50, your GPU memory bandwidth saturates, and throughput collapses. This is why Token Metrics are the foundation of modern AI infrastructure monitoring. You need to track:
- Prompt Tokens: The input size. Larger prompts increase prefill time (the initial processing phase).
- Completion Tokens: The output size. This determines how long the model keeps generating.
- Total Token Throughput: The aggregate number of tokens processed per second across all replicas.
Tools like Text Generation Inference (TGI) and vLLM explicitly export these telemetry points. For instance, TGI exposes tgi_request_generated_tokens, while vLLM uses vllm:request_success_total alongside token counts. Ignoring these means you are driving a race car by looking at the odometer instead of the tachometer.
The Holy Trinity of Latency: TTFT, ITL, and E2E
Latency in LLMs isn't a single number. It's a sequence of events, and each stage impacts user perception differently. To truly understand performance, you must decompose latency into three distinct metrics.
| Metric | Definition | User Perception Impact | Common Metric Name |
|---|---|---|---|
| Time-to-First-Token (TTFT) | Time from request receipt to the first generated token. | High. If TTFT is high, the app feels "frozen" or unresponsive. | gen_ai.server.time_to_first_token |
| Inter-Token Latency (ITL) | Average time between subsequent tokens during streaming. | Medium. High ITL makes text appear to stutter or lag. | gen_ai.server.time_per_output_token |
| End-to-End (E2E) Latency | Total time from request start to full response completion. | Low for streaming, High for non-streaming batch jobs. | tgi_request_duration |
Time-to-First-Token (TTFT) is the most critical UX metric. Research indicates that for every additional input token, P95 TTFT increases by approximately 0.24ms. While that sounds small, multiply it by a complex prompt with thousands of tokens, and you get significant delays before the user sees anything. If your TTFT jumps from milliseconds to seconds, users assume the system crashed. Monitoring histograms of TTFT helps you catch saturation early-often, a spike in delayed-first-tokens is the first sign your GPU is overwhelmed.
Inter-Token Latency (ITL) dictates the smoothness of the stream. Even if the total generation time is acceptable, if tokens arrive in clumps rather than a steady flow, the experience feels broken. This often happens when the batching scheduler struggles to allocate resources evenly across concurrent requests.
Queue Dynamics: The Hidden Killer of Performance
Most teams ignore their queues until they explode. In LLM inference, queuing theory isn't academic-it's operational reality. When you use continuous batching (a technique used by vLLM and TGI to maximize GPU utilization), requests wait in a queue to be grouped together for efficient matrix multiplication.
The problem arises from the "heavy tail" of output token lengths. Most requests are short, but a few outliers require massive generations. These long-running requests hold up the batch, forcing shorter requests to wait behind them. This creates a phenomenon where the average queue delay skyrockets because of a tiny percentage of "monster" requests.
According to recent arXiv research on queueing theoretic perspectives, enforcing a maximum output token limit can drastically reduce queueing delays. It’s a trade-off: cap the tokens too low, and you hurt quality for complex tasks; leave it uncapped, and you risk head-of-line blocking where 99% of users suffer because of 1% of requests. Effective observability requires tracking:
- Queue Wait Time: How long a request sits idle before processing starts.
- Batch Size: The number of requests currently being processed together.
- Queue Depth: The number of pending requests waiting for GPU slots.
If your queue depth grows while GPU utilization stays flat, you likely have a scheduling bottleneck, not a hardware one. Conversely, if GPU utilization is maxed out and queue wait times are high, you simply need more capacity-or better admission control.
Tail Latency: Why Averages Don't Matter
"Our average latency is 200ms," says the dashboard. Great. But if your P99 (99th percentile) latency is 15 seconds, half your power users are leaving. In distributed systems and LLM inference alike, Tail Latency defines the actual user experience. Nobody cares about your average if the worst-case scenario is terrible.
Tail latency in LLMs is driven by two main factors: resource contention and token variability. When a large batch fills the GPU memory, smaller requests may get stuck waiting for memory release. Additionally, network jitter or cold starts in serverless environments can cause sporadic spikes.
To manage this, you must monitor percentile distributions (P50, P95, P99) for both TTFT and E2E latency. Setting alerts on averages is useless here. Configure your alerting rules to trigger when P95 TTFT exceeds a threshold, such as 500ms for chat applications. This proactive approach allows you to scale up or shed load before users start complaining on social media.
Implementing Observability with OpenTelemetry
How do you actually capture this data? The industry has coalesced around OpenTelemetry semantic conventions for Generative AI. Instead of writing custom parsers for every log line, you should instrument your application to emit standardized spans and metrics.
Key attributes to include in your traces:
gen_ai.request.model: Which model version served the request?gen_ai.usage.input_tokens: Exact count of prompt tokens.gen_ai.usage.output_tokens: Exact count of completion tokens.gen_ai.response.finish_reason: Was it stopped by length limit, EOS token, or error?
Platforms like LangChain and Braintrust integrate with these standards to provide deeper visibility. They allow you to correlate technical metrics (latency, errors) with business outcomes (cost per interaction, user feedback scores). Remember, cost is directly tied to token volume. Different models have vastly different price profiles, so tracking cost-per-request alongside latency helps you identify expensive, slow outliers.
Practical Checklist for Production Deployment
Before you call your LLM deployment "production-ready," run through this checklist. If you miss any of these, you are flying blind.
- Instrument Token Counts: Ensure every request logs input and output token counts. Aggregate these by user and feature to spot abuse patterns.
- Expose Histograms, Not Just Gauges: Use Prometheus-style histograms for latency metrics. Gauges show current state; histograms show distribution over time, which is vital for calculating percentiles.
- Monitor Queue Saturation: Set alerts when queue wait time exceeds a reasonable threshold (e.g., 1 second). This predicts failure before it happens.
- Track Error Rates by Type: Distinguish between timeouts, OOM (Out of Memory) errors, and rate-limit rejections. Each requires a different mitigation strategy.
- Define SLOs Based on Percentiles: Create Service Level Objectives for P95 TTFT and P99 E2E latency. Tie your on-call rotations to these specific metrics.
Frequently Asked Questions
What is the difference between monitoring and observability in LLMs?
Monitoring tells you if something is wrong (e.g., "CPU is at 90%"), while observability tells you why it is wrong. In LLM contexts, monitoring might show high latency, but observability reveals that latency is caused by a specific subset of long-output requests clogging the batch queue, allowing you to take targeted action like adjusting token limits.
Why does my P99 latency spike even when GPU utilization is low?
This usually indicates a scheduling or memory fragmentation issue. Low overall GPU utilization doesn't mean there is available contiguous memory for new batches. Long-running requests may be holding onto VRAM, preventing new requests from starting immediately, leading to high queue wait times despite idle compute cycles.
Should I set a hard limit on output tokens?
Yes, for most production apps. Unbounded generation leads to unpredictable costs and queue congestion. A common practice is to set a default max token limit (e.g., 1024 or 2048) and allow specific high-value endpoints to override it. Monitor the percentage of requests hitting this limit to ensure you aren't truncating valid responses too frequently.
How does batching affect Inter-Token Latency?
Continuous batching improves throughput but can increase Inter-Token Latency (ITL) if the batch becomes too large or heterogeneous. When the scheduler processes a mix of very long and very short sequences, the attention mechanism overhead can vary, causing irregular token delivery speeds. Tuning the maximum batch size is key to balancing throughput against consistent ITL.
What is the best tool for LLM observability in 2026?
There is no single "best" tool, but OpenTelemetry combined with a backend like Prometheus and Grafana is the industry standard for metrics. For trace-level debugging and prompt evaluation, platforms like LangSmith or Braintrust offer superior UI/UX for correlating code changes with performance regressions.

Artificial Intelligence