c3p0
OpenTelemetry Java agent instrumentation
The c3p0 instrumentation provides connection pool metrics for c3p0 data sources.
- Name:
c3p0-0.9 - Scope:
io.opentelemetry.c3p0-0.9 - Target versions:
com.mchange:c3p0:(,) - Library: https://github.com/swaldman/c3p0
Telemetry
When default
Metrics
| Metric | Instrument | Type | Unit | Description |
|---|---|---|---|---|
db.client.connections.pending_requests | updowncounter | LONG_SUM | {requests} | The number of pending requests for an open connection, cumulative for the entire pool. |
db.client.connections.usage | updowncounter | LONG_SUM | {connections} | The number of connections that are currently in state described by the state attribute. |
| Metric | Attributes |
|---|---|
db.client.connections.pending_requests | pool.name (STRING) |
db.client.connections.usage | pool.name (STRING), state (STRING) |
When otel.semconv-stability.opt-in=database
Metrics
| Metric | Instrument | Type | Unit | Description |
|---|---|---|---|---|
db.client.connection.count | updowncounter | LONG_SUM | {connection} | The number of connections that are currently in state described by the state attribute. |
db.client.connection.pending_requests | updowncounter | LONG_SUM | {request} | The number of current pending requests for an open connection. |
| Metric | Attributes |
|---|---|
db.client.connection.count | db.client.connection.pool.name (STRING), db.client.connection.state (STRING), db.system.name (STRING) |
db.client.connection.pending_requests | db.client.connection.pool.name (STRING), db.system.name (STRING) |