opentelemetry-instrumentation-milvus
OpenTelemetry Milvus instrumentation
What it is and what it does
This package is an OpenTelemetry instrumentation plugin that automatically captures tracing data from Milvus vector database client calls. It integrates with the official Milvus library to emit spans and metrics that can be exported to observability backends for monitoring, debugging, and performance analysis.
Once installed and initialized with a single call to MilvusInstrumentor().instrument(), it transparently traces all Milvus operations without requiring changes to your application code. It depends on the core OpenTelemetry API and semantic conventions to ensure traces are compatible with standard observability platforms.
Use it for:
- Monitor Milvus query latency and performance in production systems.
- Debug slow or failing vector database operations by examining detailed trace spans.
- Correlate Milvus calls with other distributed system traces for end-to-end observability.
- Collect metrics on Milvus client behavior for capacity planning and optimization.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds distributed tracing to Milvus vector database client calls, capturing telemetry data for observability and debugging.
Yes, if you are already using OpenTelemetry and the official Milvus library. The low install friction, active maintenance, permissive license, and zero known vulnerabilities make it a straightforward addition to observability-instrumented applications. Skip it if you are not using OpenTelemetry or do not need tracing on Milvus calls.
Install
opentelemetry-instrumentation-milvus on PyPI
pip
pip install opentelemetry-instrumentation-milvusuv
uv add opentelemetry-instrumentation-milvuspoetry
poetry add opentelemetry-instrumentation-milvusInstalling opentelemetry-instrumentation-milvus
Before you install
Low install friction with a pure-Python wheel and four lightweight OpenTelemetry dependencies. Actively maintained with a recent release.
License in practice
Apache-2.0 is permissive; you can use this in commercial and proprietary projects without restriction.
Quickstart
pip install opentelemetry-instrumentation-milvus
from opentelemetry.instrumentation.milvus import MilvusInstrumentor
MilvusInstrumentor().instrument()
Requires Python 3.10 or later.
Verify before relying
- Whether this instrumentation works with all versions of the official Milvus library or has specific version constraints.
- What specific trace attributes and spans are captured for Milvus operations.
- Whether additional configuration is needed beyond calling instrument() to export traces to a backend.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (<4,>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions-ai, opentelemetry-semantic-conventions |
| Maintenance | actively maintained — 4 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,505,827/month — #1,732 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_instrumentation_milvus-0.62.3-py3-none-any.whl
Tags
More Monitoring packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
opentelemetry-semantic-conventionsProvides generated Python code for…
permissive · top 100 on PyPI
opentelemetry-sdkProvides the reference implementation of the…
permissive · top 100 on PyPI
opentelemetry-apiProvides the abstract API and interfaces for…
permissive · top 100 on PyPI
opentelemetry-exporter-otlp-proto-httpExports OpenTelemetry observability data to an…
permissive · top 1,000 on PyPI
opentelemetry-instrumentationProvides automatic instrumentation commands and…
permissive · top 1,000 on PyPI
opentelemetry-instrumentation-qdrantAdds distributed tracing to Qdrant vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-chromadbAdds distributed tracing to Chroma vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-weaviateAdds distributed tracing to Weaviate vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-marqoAdds OpenTelemetry tracing to client-side calls…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pineconeAdds distributed tracing to Pinecone vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-lancedbAdds distributed tracing instrumentation for…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-ollamaAdds distributed tracing to Ollama Python…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-llamaindexAdds distributed tracing to LlamaIndex…
permissive · top 5,000 on PyPI
milvus-liteMilvus Lite is a pure-Python local vector…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-elasticsearchAdds distributed tracing to Elasticsearch…
permissive · top 5,000 on PyPI