Skip to content

Add Redis Cluster instrumentation support#844

Open
mitchh456 wants to merge 2 commits intomasterfrom
feature/840-redis-cluster-instrumentation
Open

Add Redis Cluster instrumentation support#844
mitchh456 wants to merge 2 commits intomasterfrom
feature/840-redis-cluster-instrumentation

Conversation

@mitchh456
Copy link
Copy Markdown
Contributor

Summary

  • Extended Redis instrumentation to cover RedisCluster.execute_command() when available
  • Follows the same pattern as existing Redis.execute_command() wrapping
  • Provides visibility into cluster operations including PubSub commands
  • Defensive import — gracefully skips if RedisCluster is not available

Context

redis-py added async Cluster PubSub support (PR #3736). By instrumenting RedisCluster.execute_command(), Scout can provide APM visibility for cluster operations without needing to instrument each PubSub method individually.

Test plan

  • Verify existing Redis tests still pass
  • Verify cluster commands create Redis/{COMMAND} spans when RedisCluster is available
  • Verify graceful degradation when RedisCluster is not available

Closes #840

🤖 Generated with Claude Code

mitchh456 and others added 2 commits March 31, 2026 19:33
Extend Redis instrumentation to cover RedisCluster.execute_command()
when available, providing visibility into cluster operations including
the new async Cluster PubSub feature in redis-py.

Closes #840

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

redis-py adds async Cluster PubSub — new instrumentation opportunity

1 participant