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)0593Apache-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 today

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

32

—

LowBetter than 69% of packages

Maintenance42

Moderate activity, may be stable

Popularity18

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity50

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

476d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1885137?v=4)[Grzegorz Drozd](/maintainers/grzegorzdrozd)[@GrzegorzDrozd](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.7M9](/packages/open-telemetry-opentelemetry-auto-laravel)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[open-telemetry/opentelemetry-auto-symfony

OpenTelemetry auto-instrumentation for Symfony

561.6M4](/packages/open-telemetry-opentelemetry-auto-symfony)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M577](/packages/shopware-core)

PHPackages © 2026

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