OpenTelemetry vLLM instrumentation
Project description
This library allows tracing and metrics collection for vLLM LLM serving framework.
Installation
pip install opentelemetry-instrumentation-vllm
Features
Works with vLLM 0.7.x–0.10.x (set VLLM_USE_V1=1 to opt into the v1 engine when running 0.8.x–0.10.x).
Captures spans for non-streaming and streaming create_completion and create_chat_completion calls, including prompt/response bodies, token usage and finish reasons.
Hooks the internal LLM engine to emit spans with TTFT, queueing time, per-stage latency and sampling parameters.
Hijacks vLLM’s Prometheus loggers so that all engine metrics are pushed through OpenTelemetry meters instead of relying on pull-based scraping.
Usage
from opentelemetry.instrumentation.vllm import VLLMInstrumentor
VLLMInstrumentor().instrument()
References
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tapm_instrumentation_vllm-0.1b3.tar.gz.
File metadata
- Download URL: tapm_instrumentation_vllm-0.1b3.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71ebd9db44f180a842851ec142aa7c0a642c3ca0c6bf6e81591c9aa83350cb7d
|
|
| MD5 |
f84e0c7b0af67df70b61928c03d615f7
|
|
| BLAKE2b-256 |
10b2d50ece767017f7b952bd5a0e5da44519205fb234e3929e6caa55b4430e67
|
File details
Details for the file tapm_instrumentation_vllm-0.1b3-py3-none-any.whl.
File metadata
- Download URL: tapm_instrumentation_vllm-0.1b3-py3-none-any.whl
- Upload date:
- Size: 29.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ef076f08f9fb2376c247dc7d026bddf88ad0914802cf7d02e3b625fc7395fe0
|
|
| MD5 |
123bc71fbc7e6e82ef9ffd831d11a221
|
|
| BLAKE2b-256 |
9a46c575cfb78b503f3bee3d70cb4e7d176ca73463baeba9c8eb021dab455c62
|