AbstractInstrumentation
abstract class AbstractInstrumentation implements Instrumentation
Properties
| protected InstrumentationOptions | $options |
Methods
void
register(array $options)
Register the instrumentation with normalized options.
void
registerInstrumentation()
Register listeners, observers, and instruments.
bool
tracesEnabled()
Determine whether trace output is enabled.
bool
metricEnabled(string $name)
Determine whether a metric is enabled.
array
indexObservers(array $names, array $observers)
Index callback observers by their matching instrument name.
Details
at line 18
final void
register(array $options)
Register the instrumentation with normalized options.
at line 27
abstract protected void
registerInstrumentation()
Register listeners, observers, and instruments.
at line 32
protected bool
tracesEnabled()
Determine whether trace output is enabled.
at line 40
protected bool
metricEnabled(string $name)
Determine whether a metric is enabled.
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.