# Apache Commons Pool

<!-- llms-txt-link: /llms.txt -->

> 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

- **Metrics**: `apache_commons_pool.object.count`, `apache_commons_pool.object.idle.max`, `apache_commons_pool.object.idle.min`, `apache_commons_pool.object.max`, `apache_commons_pool.object.pending_requests`

## Configuration

| Option | Type | Default | Description |
| --- | --- | --- | --- |
| `otel.instrumentation.apache-commons-pool.enabled` | boolean | false | Enables the Apache Commons Pool instrumentation. |

## Data

- **JSON**: [/data/javaagent/instrumentations/apache-commons-pool-2.0/apache-commons-pool-2.0-ad6e6e94ca9a.json](/data/javaagent/instrumentations/apache-commons-pool-2.0/apache-commons-pool-2.0-ad6e6e94ca9a.json)
- **Explore**: [/java-agent/instrumentation/apache-commons-pool-2.0](/java-agent/instrumentation/apache-commons-pool-2.0)
