Skip to content

Conversation

@aryamohanan
Copy link
Contributor

@aryamohanan aryamohanan commented Oct 24, 2025

The instrumentation for pool was returning the prototype instead of the instance, which is wrong and will broke private-field access.

Redis v5.9.0 introduced change, which modified how createClientPool initializes the client, causing private fields like #isOpen to become inaccessible when wrapped by our tracer.

@aryamohanan aryamohanan requested a review from a team as a code owner October 24, 2025 14:01
@kirrg001 kirrg001 self-assigned this Oct 27, 2025
Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please update redis to 5.9.0 as part of this PR and then run against 5.8.3 and 5.9.0 in pkg json? Ty

…prototype

The instrumentation for pool was returning the prototype instead of the instance, which is wrong and will broke private-field access.
@sonarqubecloud
Copy link

Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aryamohanan aryamohanan requested a review from kirrg001 October 28, 2025 13:22
Copy link
Contributor

@kirrg001 kirrg001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will address the double calls in a separate JIRA for redis 5.9.0.
These appear as soon as you install redis 5.9.0 - the changes in the instrumentation are not responsible for that.

@aryamohanan aryamohanan merged commit a05fecd into main Oct 28, 2025
3 checks passed
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.

4 participants