opentelemetry-python-contrib-external-valkey
OpenTelemetry Valkey instrumentation
What it is and what it does
This package provides OpenTelemetry instrumentation for the Valkey Python client, a fork of the Redis Python client. It automatically captures Valkey operations and emits tracing data for observability, filling a gap until Valkey receives official support in the main opentelemetry-python-contrib project. The instrumentation works by wrapping Valkey client methods to generate spans and metrics compatible with OpenTelemetry standards.
The package is built as a fork of the Redis instrumentation with minimal changes—primarily string replacements from Redis to Valkey—ensuring feature parity with the established Redis instrumentation. It requires opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, and wrapt, and targets Python 3.10 or later.
Use it for:
- Monitor Valkey operations in distributed systems to trace request flow and identify latency bottlenecks.
- Export Valkey metrics to observability backends (Jaeger, Datadog, etc.) for centralized monitoring.
- Debug application performance by correlating Valkey calls with other service spans in a trace.
- Audit Valkey client behavior in production without modifying application code.
- Validate Valkey performance during load testing by collecting operation-level metrics.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Adds OpenTelemetry tracing to the Valkey Python client, capturing operations and performance metrics for observability.
Yes, if you use Valkey and need OpenTelemetry tracing. The package has low install friction, active maintenance, no known vulnerabilities, and permissive licensing. However, note that it is a community-maintained external package pending official Valkey support in opentelemetry-python-contrib; verify compatibility with your Valkey version and observability stack before production deployment.
Install
opentelemetry-python-contrib-external-valkey on PyPI
pip
pip install opentelemetry-python-contrib-external-valkeyuv
uv add opentelemetry-python-contrib-external-valkeypoetry
poetry add opentelemetry-python-contrib-external-valkeyInstalling opentelemetry-python-contrib-external-valkey
Before you install
Low install friction with a pure-Python wheel and only four runtime dependencies (opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt). Maintenance status is active with a recent release.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restriction.
Quickstart
pip install opentelemetry-python-contrib-external-valkey
from opentelemetry.instrumentation.valkey import ValkeyInstrumentor
ValkeyInstrumentor().instrument()
Requires Python 3.10 or later.
Verify before relying
- Whether this package will be superseded by official Valkey support in opentelemetry-python-contrib.
- Performance overhead of instrumentation on typical Valkey workloads.
- Compatibility with specific Valkey client versions beyond the fork basis.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — opentelemetry-api, opentelemetry-instrumentation, opentelemetry-semantic-conventions, wrapt |
| Maintenance | actively maintained — 49 days since the last release |
| First released | |
| Downloads | 186,057/month — #9,995 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: opentelemetry_python_contrib_external_valkey-0.64b0-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-redisAdds distributed tracing to Redis client calls…
permissive · top 1,000 on PyPI
valkey-glideValkey GLIDE is an official async and sync…
permissive · top 5,000 on PyPI
libvalkeylibvalkey is a Python C extension that…
permissive · top 5,000 on PyPI
valkeyPython client library for connecting to and…
permissive · top 5,000 on PyPI
opentelemetry-contrib-instrumentationsA meta-package that installs all OpenTelemetry…
permissive · top 15,000 on PyPI
opentelemetry-instrumentation-celeryAdds distributed tracing and observability to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-kafka-pythonAdds distributed tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-pymemcacheAdds OpenTelemetry tracing instrumentation to…
permissive · top 5,000 on PyPI
opentelemetry-instrumentation-grpcAdds automatic tracing and monitoring to gRPC…
permissive · top 5,000 on PyPI
django-valkeyProvides a Valkey cache and session backend for…
permissive · top 15,000 on PyPI