PoolInstrumentation
class PoolInstrumentation extends AbstractInstrumentation
Constants
| protected OBJECTS_METRIC |
|
| protected OBJECTS_MAX_METRIC |
|
| protected OBJECTS_PENDING_REQUESTS_METRIC |
|
| protected OBJECT_POOL_NAME_ATTRIBUTE |
|
| protected OBJECT_POOL_STATE_ATTRIBUTE |
|
Properties
| protected InstrumentationOptions | $options | from AbstractInstrumentation |
Methods
Register the instrumentation with normalized options.
Register pool instruments and collection callbacks.
Determine whether a metric is enabled.
Index callback observers by their matching instrument name.
Create pool instrumentation.
Create one observable pool instrument.
Record snapshots from every existing database and Redis connection pool.
Record one existing connection-pool snapshot.
Record snapshots from every existing object pool.
Details
in
AbstractInstrumentation at line 18
final void
register(array $options)
Register the instrumentation with normalized options.
at line 44
protected void
registerInstrumentation()
Register pool instruments and collection callbacks.
in
AbstractInstrumentation at line 32
protected bool
tracesEnabled()
Determine whether trace output is enabled.
in
AbstractInstrumentation at line 40
protected bool
metricEnabled(string $name)
Determine whether a metric is enabled.
in
AbstractInstrumentation at line 55
protected array
indexObservers(array $names, array $observers)
Index callback observers by their matching instrument name.
The SDK supplies observers in the same order as the instruments passed to batchObserve(), so the unchanged name order is the mapping contract.
at line 33
__construct(PoolManager $databasePools, PoolManager $redisPools, PoolManager $objectPools, MeterProviderInterface $meterProvider)
Create pool instrumentation.
at line 99
protected ObservableUpDownCounterInterface
createInstrument(MeterInterface $meter, string $name)
Create one observable pool instrument.
at line 136
protected void
observeConnectionPools(array $observers)
Record snapshots from every existing database and Redis connection pool.
at line 152
protected void
observeConnectionPool(array $observers, ConnectionPool $pool, string $name)
Record one existing connection-pool snapshot.
at line 188
protected void
observeObjectPools(array $observers)
Record snapshots from every existing object pool.