Trace LLM P95 Latency Spikes in Python with OpenTelemetry + Prometheus
About this lesson
P95 spikes are useless until you can trace them to the slow model, retriever, or tool call that caused them. Walk away with an in-process setup that flags P95 latency and pinpoints the slowest trace segment for fast remediation. Instrument prepare, retrieval, and completion spans using OpenTelemetry and export culprit labels to Prometheus in Python to link alerts to traces. Subscribe for practical AI engineering and LLM systems tutorials from Professor Py. #P95 #observability #OpenTelemetry #Prometheus #LLMs #AIEngineering #Python
Original Description
P95 spikes are useless until you can trace them to the slow model, retriever, or tool call that caused them.
Walk away with an in-process setup that flags P95 latency and pinpoints the slowest trace segment for fast remediation.
Instrument prepare, retrieval, and completion spans using OpenTelemetry and export culprit labels to Prometheus in Python to link alerts to traces.
Subscribe for practical AI engineering and LLM systems tutorials from Professor Py.
#P95 #observability #OpenTelemetry #Prometheus #LLMs #AIEngineering #Python
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Related Reads
📰
📰
📰
📰
I Self-Hosted SigNoz the Week Its docker-compose Died — Here's the Map...
Dev.to AI
Repository-Level Copilot Metrics Need a Cardinality Budget Before Export
Dev.to · Odd_Background_328
Make Copilot Review Configuration Observable From Pull Request to Finding
Dev.to · kongkong
Docker Build Cache Is Fast Until One COPY Line Invalidates Everything
Medium · DevOps
🎓
Tutor Explanation
DeepCamp AI