This documentation has an index for AI agents at /llms.txt. A Markdown version of this page is available at https://explorer.opentelemetry.io/java-agent/instrumentation/apache-commons-pool-2.0.md.

Apache Commons Pool

OpenTelemetry Java agent instrumentation

This instrumentation enables object pool metrics for Apache Commons Pool GenericObjectPool and GenericKeyedObjectPool instances.

  • Name: apache-commons-pool-2.0
  • Scope: io.opentelemetry.apache-commons-pool-2.0
  • Target versions: org.apache.commons:commons-pool2:[2.0,)
  • Library: https://commons.apache.org/proper/commons-pool/

Telemetry

When otel.instrumentation.apache-commons-pool.enabled=true

Metrics

MetricInstrumentTypeUnitDescription
apache_commons_pool.object.countupdowncounterLONG_SUM{object}The number of objects currently in the state described by the state attribute.
apache_commons_pool.object.idle.maxupdowncounterLONG_SUM{object}The maximum number of idle objects allowed in the pool.
apache_commons_pool.object.idle.minupdowncounterLONG_SUM{object}The minimum number of idle objects allowed in the pool.
apache_commons_pool.object.maxupdowncounterLONG_SUM{object}The maximum number of objects allowed in the pool.
apache_commons_pool.object.pending_requestsupdowncounterLONG_SUM{request}The number of requests currently waiting for an object from the pool.
MetricAttributes
apache_commons_pool.object.countapache_commons_pool.object.state (STRING), apache_commons_pool.pool.name (STRING)
apache_commons_pool.object.idle.maxapache_commons_pool.pool.name (STRING)
apache_commons_pool.object.idle.minapache_commons_pool.pool.name (STRING)
apache_commons_pool.object.maxapache_commons_pool.pool.name (STRING)
apache_commons_pool.object.pending_requestsapache_commons_pool.pool.name (STRING)

Configuration

OptionTypeDefaultDescription
otel.instrumentation.apache-commons-pool.enabledbooleanfalseEnables the Apache Commons Pool instrumentation.

Data

  • JSON (latest): /data/javaagent/instrumentations/apache-commons-pool-2.0/latest.json
  • JSON (pinned): /data/javaagent/instrumentations/apache-commons-pool-2.0/apache-commons-pool-2.0-ad6e6e94ca9a.json
  • Explore: /java-agent/instrumentation/apache-commons-pool-2.0