DeferredMeterProvider
class DeferredMeterProvider implements MeterProviderInterface
Defer real meter creation until a worker-local provider is available.
Properties
| protected MeterProviderInterface|null | $delegate | ||
| protected DeferredMeter> | $meters |
Methods
MeterInterface
getMeter(string $name, string|null $version = null, string|null $schemaUrl = null, iterable $attributes = [])
Return a meter for the given instrumentation scope.
void
bind(MeterProviderInterface $provider)
Bind every pre-fork meter to a worker-local provider.
void
unbind()
Unbind every pre-fork meter from its worker-local provider.
Details
at line 25
MeterInterface
getMeter(string $name, string|null $version = null, string|null $schemaUrl = null, iterable $attributes = [])
Return a meter for the given instrumentation scope.
at line 44
void
bind(MeterProviderInterface $provider)
Bind every pre-fork meter to a worker-local provider.
at line 56
void
unbind()
Unbind every pre-fork meter from its worker-local provider.