Registry / observability / opentelemetry-python-contrib-external-valkey

opentelemetry-python-contrib-external-valkey

JSON →
library0.63b1pypypiunverified

Auto-instrumentation for Valkey (a Redis-compatible key-value store) via OpenTelemetry. Currently at version 0.62b0, released as part of the opentelemetry-python-contrib-external repository. Follows OpenTelemetry semantic conventions; compatible with Python >=3.9.

pip install opentelemetry-python-contrib-external-valkey
INSTALL
IMPORT
SIG · OPENTELEMETRY-PYTH
O
opentelemetry-python-contrib-external-valkey
observabilitypythonv0.63b1
Install
4.1s avg
Import
Disk
21MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.63b1 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 22.4MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 4.1s · import 0.000s · 23MB
21MB installed
● package 21MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

ValkeyInstrumentor
from opentelemetry.instrumentation.valkey import ValkeyInstrumentor
from opentelemetry.instrumentation.valkey import ValkeyInstrumentor

Basic auto-instrumentation of Valkey client

from opentelemetry.instrumentation.valkey import ValkeyInstrumentor from valkey import Valkey # Instrument Valkey automatically ValkeyInstrumentor().instrument() # Create a Valkey client client = Valkey(host='localhost', port=6379, db=0) client.set('key', 'value') print(client.get('key'))
Debug
Known issues
gotchaEnsure that the `valkey` Python client is installed separately; this package only provides instrumentation.
fix
pip install valkey
affects: >=0.1.0
gotchaInstrumentation must be applied before creating any Valkey client instances to capture all spans.
fix
Call instrument() before instantiating client
affects: >=0.1.0
deprecatedThe import path opentelemetry.contrib.valkey was deprecated in favor of opentelemetry.instrumentation.valkey.
fix
Use from opentelemetry.instrumentation.valkey import ValkeyInstrumentor
affects: <0.62b0
Upgrade
Version history
0.63b1latest on PyPI · released May 22, 2026
Audit
Dependencies
opentelemetry-apirequiredCore API dependency
opentelemetry-instrumentationrequiredBase instrumentation package
valkeyrequiredInstrumentation requires Valkey client library
Agent activity
13 hits · last 30 days
node
10
OpenAI (training)
1
Resources
opentelemetry-python-contrib-external-valkey — pip install opentelemetry-python-contrib-external-valkey · libregistry