opentelemetry-java-instrumentation icon indicating copy to clipboard operation
opentelemetry-java-instrumentation copied to clipboard

Add Redisson 2.3-3.17 connection pool metrics

Open YaoYingLong opened this issue 4 months ago • 1 comments

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 ClientConnectionsEntry construction 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 AtomicInteger counters and AsyncSemaphore-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

YaoYingLong avatar Jul 09 '26 05:07 YaoYingLong

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:reviewers to 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 avatar Jul 31 '26 14:07 trask

@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

trask avatar Aug 05 '26 18:08 trask