Skip to content

Commit 7a8cea9

Browse files
authored
feat(redis): Add redis and integration options (#10793)
1 parent eec8899 commit 7a8cea9

File tree

1 file changed

+10
-1
lines changed
  • docs/platforms/javascript/common/configuration/integrations

1 file changed

+10
-1
lines changed

docs/platforms/javascript/common/configuration/integrations/redis.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,17 @@ _Import name: `Sentry.redisIntegration`_
3030

3131
This integration is enabled by default when performance monitoring is enabled. If you'd like to modify your default integrations, read [this](./../#modifying-default-integrations).
3232

33-
The `redisIntegration` adds instrumentation for the `ioredis` library to capture spans using [`@opentelemetry/instrumentation-ioredis`](https://www.npmjs.com/package/@opentelemetry/instrumentation-ioredis).
33+
The `redisIntegration` adds instrumentation for the `ioredis` and `redis` library to capture spans using [`@opentelemetry/instrumentation-ioredis`](https://www.npmjs.com/package/@opentelemetry/instrumentation-ioredis) and [`@opentelemetry/instrumentation-redis-4`](https://www.npmjs.com/package/@opentelemetry/instrumentation-redis-4).
3434

3535
## Supported Versions
3636

3737
- `ioredis`: `>=2.0.0 <6`
38+
- `redis`: `>=4.0.0`
39+
40+
## Options
41+
42+
### `cachePrefixes`
43+
44+
_Type: `(string)[]`_
45+
46+
Define cache prefixes for cache keys that should be captured as a cache span. Setting this to, for example, `['user:']` will capture cache keys that start with `user:`.

0 commit comments

Comments
 (0)