PHPackages                             grzegorzdrozd/otel-auto-redis - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Caching](/categories/caching)
4. /
5. grzegorzdrozd/otel-auto-redis

ActiveLibrary[Caching](/categories/caching)

grzegorzdrozd/otel-auto-redis
=============================

OpenTelemetry auto-instrumentation for Redis

1.0.0(1y ago)05Apache-2.0PHPPHP ^8.2

Since Mar 15Pushed 1y ago1 watchersCompare

[ Source](https://github.com/GrzegorzDrozd/otel-auto-redis)[ Packagist](https://packagist.org/packages/grzegorzdrozd/otel-auto-redis)[ Docs](https://opentelemetry.io/docs/php)[ RSS](/packages/grzegorzdrozd-otel-auto-redis/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (19)Versions (2)Used By (0)

OpenTelemetry redis|predis|credis auto-instrumentation
======================================================

[](#opentelemetry-redisprediscredis-auto-instrumentation)

Please read  for instructions on how to install and configure the extension and SDK.

Overview
--------

[](#overview)

Auto-instrumentation hooks are registered via Composer, and spans will automatically be created for selected `redis` operations (by default: all Redis commands).

Configuration
-------------

[](#configuration)

You can disable the extension using [runtime configuration](https://opentelemetry.io/docs/instrumentation/php/sdk/#configuration):

```
OTEL_PHP_DISABLED_INSTRUMENTATIONS=redis
OTEL_PHP_DISABLED_INSTRUMENTATIONS=predis
OTEL_PHP_DISABLED_INSTRUMENTATIONS=credis
```

### Module specific configuration

[](#module-specific-configuration)

#### Disable instrumentation for specific commands

[](#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 @&lt;group\_name&gt;. Groups are defined in the `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.

```
OTEL_PHP_INSTRUMENTATION_REDIS_PREDIS_FUNCTIONS=@all,-@readonly
OTEL_PHP_INSTRUMENTATION_REDIS_CREDIS_FUNCTIONS=@write
OTEL_PHP_INSTRUMENTATION_REDIS_REDIS_FUNCTIONS=get,mget
```

#### Tracking connection details for clustered connection

[](#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.

```
OTEL_PHP_INSTRUMENTATION_PREDIS_TRACK_AGGREGATED_CONNECTIONS=true
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance45

Moderate activity, may be stable

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

423d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f327142b711928e96f8533d2e8d3247d846ce46c8cc625f03d96dd7ceaacda53?d=identicon)[grzegorzdrozd](/maintainers/grzegorzdrozd)

---

Tags

redistracingopentelemetryotelinstrumentationopen-telemetry

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan, Psalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/grzegorzdrozd-otel-auto-redis/health.svg)

```
[![Health](https://phpackages.com/badges/grzegorzdrozd-otel-auto-redis/health.svg)](https://phpackages.com/packages/grzegorzdrozd-otel-auto-redis)
```

###  Alternatives

[open-telemetry/opentelemetry-auto-pdo

OpenTelemetry auto-instrumentation for PDO

111.2M1](/packages/open-telemetry-opentelemetry-auto-pdo)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

531.9M8](/packages/open-telemetry-opentelemetry-auto-laravel)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

551.2M1](/packages/open-telemetry-opentelemetry-auto-symfony)[open-telemetry/opentelemetry-auto-wordpress

OpenTelemetry auto-instrumentation for Wordpress

17166.0k](/packages/open-telemetry-opentelemetry-auto-wordpress)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
