Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file opentelemetry_python_contrib_external_valkey-0.60b0.post1.tar.gz.

File metadata

  • Download URL: opentelemetry_python_contrib_external_valkey-0.60b0.post1.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","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

Hashes for opentelemetry_python_contrib_external_valkey-0.60b0.post1.tar.gz
Algorithm Hash digest
SHA256 4d706f8f07986c7e12aa6a9f4c77c2a300c3285afc016e3daa0ec610e6ac8b2d
MD5 bbcd380f8062aafa53a3591eaab511b0
BLAKE2b-256 3b4a57f0cc2b1fb23fd941eab0abfd13bd4dbf7e933fe537d598f717cb1a4242

See more details on using hashes here.

File details

Details for the file opentelemetry_python_contrib_external_valkey-0.60b0.post1-py3-none-any.whl.

File metadata

  • Download URL: opentelemetry_python_contrib_external_valkey-0.60b0.post1-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","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

Hashes for opentelemetry_python_contrib_external_valkey-0.60b0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 56e230a70b8e7169cff8cbeed95a5d9c1def7ab4cc128cab57f6b3195763d24a
MD5 378e2c63355737316b555a7cdd552d3e
BLAKE2b-256 9eb255a7f4d3646b4d0ec65cb73eaaad232aaa528edb1748a12e4fc291cf7267

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page