Download the PHP package grzegorzdrozd/otel-auto-redis without Composer
On this page you can find all versions of the php package grzegorzdrozd/otel-auto-redis. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download grzegorzdrozd/otel-auto-redis
More information about grzegorzdrozd/otel-auto-redis
Files in grzegorzdrozd/otel-auto-redis
Package otel-auto-redis
Short Description OpenTelemetry auto-instrumentation for Redis
License Apache-2.0
Homepage https://opentelemetry.io/docs/php
Informations about the package otel-auto-redis
OpenTelemetry redis|predis|credis auto-instrumentation
Please read https://opentelemetry.io/docs/instrumentation/php/automatic/ for instructions on how to install and configure the extension and SDK.
Overview
Auto-instrumentation hooks are registered via Composer, and spans will automatically be created for
selected redis
operations (by default: all Redis commands).
Configuration
You can disable the extension using runtime configuration:
Module specific configuration
Disable instrumentation for specific commands
You can disable instrumentation for specific commands. This can be useful if you have some commands that are executed very often and you don't want to create spans for them. This option is disabled by default. Use environment variables to set this option. You can set multiple commands separated by a comma. You can also specify "group" of commands using @src/CommandGroupEnum.php
file. List of commands and groups can be found in the src/AbstractInstrumentation.php
file. You can define commands individually for each supported extension.
Tracking connection details for clustered connection
In Predis you can configure a clustered connection (for replication, sharding, etc.). In this case, there is no clear way to see which server executed a command. Changing this setting to true will use Predis methods to get information about which connection executed the command. Optionally, when cluster mode is set to redis, it will make a second call to Redis to determine this information. This will make your code slower. This option is disabled by default.
All versions of otel-auto-redis with dependencies
ext-opentelemetry Version *
guzzlehttp/guzzle Version ^7.9
guzzlehttp/psr7 Version ^2.7
open-telemetry/api Version ^1.0
open-telemetry/exporter-otlp Version ^1.2
open-telemetry/sem-conv Version ^1.24
php Version ^8.2
symfony/polyfill-mbstring Version ^1.31
symfony/cache Version ^7.2