skillfed

opentelemetry-python-contrib-external-valkey

OpenTelemetry Valkey instrumentation

opentelemetry-python-contrib-external-valkey v0.64b0 186.1K downloads/30d#9,995 on PyPI
Permissive license Apache-2.0 Active released

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-valkey

uv

uv add opentelemetry-python-contrib-external-valkey

poetry

poetry add opentelemetry-python-contrib-external-valkey

Installing 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

opentelemetry valkey instrumentationvalkey tracing observabilityvalkey client monitoringdistributed tracing valkeyvalkey performance metricsvalkey instrumentation libraryopentelemetry redis fork
observabilitydistributed-tracingvalkey-instrumentation

More Monitoring packages

tqdm

Wraps any iterable to display a real-time…

copyleft · top 100 on PyPI

opentelemetry-semantic-conventions

Provides generated Python code for…

permissive · top 100 on PyPI

opentelemetry-sdk

Provides the reference implementation of the…

permissive · top 100 on PyPI

opentelemetry-api

Provides the abstract API and interfaces for…

permissive · top 100 on PyPI

opentelemetry-exporter-otlp-proto-http

Exports OpenTelemetry observability data to an…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation

Provides automatic instrumentation commands and…

permissive · top 1,000 on PyPI

opentelemetry-instrumentation-redis

Adds distributed tracing to Redis client calls…

permissive · top 1,000 on PyPI

valkey-glide

Valkey GLIDE is an official async and sync…

permissive · top 5,000 on PyPI

libvalkey

libvalkey is a Python C extension that…

permissive · top 5,000 on PyPI

valkey

Python client library for connecting to and…

permissive · top 5,000 on PyPI

opentelemetry-contrib-instrumentations

A meta-package that installs all OpenTelemetry…

permissive · top 15,000 on PyPI

opentelemetry-instrumentation-celery

Adds distributed tracing and observability to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-kafka-python

Adds distributed tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-pymemcache

Adds OpenTelemetry tracing instrumentation to…

permissive · top 5,000 on PyPI

opentelemetry-instrumentation-grpc

Adds automatic tracing and monitoring to gRPC…

permissive · top 5,000 on PyPI

django-valkey

Provides a Valkey cache and session backend for…

permissive · top 15,000 on PyPI