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.

Parameters

string $name
string|null $version
string|null $schemaUrl
iterable $attributes

Return Value

MeterInterface

at line 44
void bind(MeterProviderInterface $provider)

Bind every pre-fork meter to a worker-local provider.

Parameters

MeterProviderInterface $provider

Return Value

void

at line 56
void unbind()

Unbind every pre-fork meter from its worker-local provider.

Return Value

void