Add Redisson 2.3-3.17 connection pool metrics
Summary
Adds Redisson connection pool metrics support for Redisson versions [2.3.0, 3.18.0).
This introduces a new redisson-metrics-2.3 javaagent instrumentation module that reports database connection pool metrics for Redisson pools, including used/idle connections, configured min/max pool sizes, and pending connection requests when the underlying Redisson version exposes that information.
Changes
- Add a new Redisson metrics instrumentation module for versions
[2.3.0, 3.18.0). - Instrument
ClientConnectionsEntryconstruction to register connection pool metrics from Redisson pool configuration and free connection counters. - Instrument
RedisClient.shutdownAsync()to unregister metrics when the client is shut down. - Support both legacy
AtomicIntegercounters andAsyncSemaphore-based counters used by newer Redisson versions in this range. - Add Redis Testcontainers coverage for Redisson connection pool metrics, including stable database semantic conventions.
Testing
Suggested validation:
./gradlew :instrumentation:redisson:redisson-metrics-2.3:javaagent:test./gradlew :instrumentation:redisson:redisson-metrics-2.3:javaagent:testStableSemconv
Pull request dashboard status
Waiting on the author · refreshed 2026-09-02 10:28 UTC
Respond to 1 review item (e.g. link a commit, explain why not, ask a follow-up):
- Top-level threads: 1
Status above doesn't look right?
- Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
- Should this be with reviewers? Comment
/dashboard route:reviewersto route it to them. - Anything wrong — including the routing? Report it with what you expected; it helps us improve the dashboard.
/dashboard route:reviewers
@trask this pull request is already waiting on reviewers, so /dashboard route:reviewers had no effect.
marking as draft for now based on https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/19152#discussion_r3708838794