OpenTelemetry Valkey instrumentation
Project description
opentelemetry-python-contrib-external-valkey
OpenTelemetry instrumentation for the Valkey Python Client.
How do I install it?
opentelemetry-python-contrib-external-valkey is available on PyPI. You can install it with
pip install opentelemetry-python-contrib-external-valkey
or
uv add opentelemetry-python-contrib-external-valkey
or something equivalent.
How do I use it?
For global instrumentation of the Valkey Python client you can do
from opentelemetry.instrumentation.valkey import ValkeyInstrumentor
ValkeyInstrumentor().instrument()
For more detailed documentation please have a look at the opentelemetry-instrumentation-redis documentation and just replace [rR]edis with [vV]alkey.
Why is this needed?
opentelemetry-instrumentation-redis instruments the redis module and has multiple isinstance checks for classes from it. Since the Valkey Python Client is a fork of the Redis Python Client, any instrumentation through opentelemetry-instrumentation-redis has no effect on the valkey module or any of its classes. opentelemetry-python-contrib-external-valkey fills this gap until Valkey is officially supported and gives Valkey users the same user experience for instrumentation as Redis users.
How does it work?
This repository is a fork of opentelemetry-python-contrib and specifically the instrumentation/opentelemetry-instrumentation-redis folder. 95% and more of the changes in the src and tests folders are just replacing the strings redis and Redis with valkey and Valkey respectively.
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 opentelemetry_python_contrib_external_valkey-0.60b1.tar.gz.
File metadata
- Download URL: opentelemetry_python_contrib_external_valkey-0.60b1.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37091a472dc0203958f50211d0dd9f0ce6610c92f595732a82081f77da78d9ba
|
|
| MD5 |
8b6c28f6790567479f54a0d361a0f73e
|
|
| BLAKE2b-256 |
7394ee8b4c7c67adf742f86d182b06354dbd83bdc6e46703d3b5468ed0b6b4d9
|
File details
Details for the file opentelemetry_python_contrib_external_valkey-0.60b1-py3-none-any.whl.
File metadata
- Download URL: opentelemetry_python_contrib_external_valkey-0.60b1-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40989b9065acbdf388fe5792330ab4db047ca53d73849f86cb940e603d6f1770
|
|
| MD5 |
3332b6c99edcbc5a327f1ad29736aa15
|
|
| BLAKE2b-256 |
c4c0a32181c6e00824d2c9deaaf64278b9312f9ce06d97c86f91d6cb9b893aa3
|