Skip to content

Conversation

PavelPashov
Copy link

@PavelPashov PavelPashov commented Sep 3, 2025

Which problem is this PR solving?

Currently when using the ioredis in cluster mode the instrumentation-ioredis package wraps only the standalone client methods, which cluster mode still ultimately uses, however this is a bit misleading and does not represent the correct tracing.

Short description of the changes

  • Added instrumentCluster?: boolean to enable cluster instrumentation
  • Instruments Cluster.sendCommand() and Cluster.connect() methods
  • Added cluster instrumentation tests
  • Updated the README

Additional Information

Cluster instrumentation is gated behind a configuration flag to maintain backward compatibility for users who may not need it. Additionally, the attributes for standalone clients and clusters are not fully compatible.

Copy link

linux-foundation-easycla bot commented Sep 3, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@PavelPashov PavelPashov marked this pull request as ready for review September 5, 2025 08:42
@PavelPashov PavelPashov requested a review from a team as a code owner September 5, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants