class ProviderFactory

Methods

__construct(Container $container)

Create a provider factory.

create(array $configuration, ProcessIdentity $identity, Closure $resolveExporterFactory)

Build the enabled worker-local signal providers.

MeterProviderInterface|null
metrics(array $configuration, Closure $resolveResource, Closure $resolveExporterFactory)

Build or resolve the metrics provider.

TracerProviderInterface|null
traces(array $configuration, Closure $resolveResource, Closure $resolveExporterFactory, MeterProviderInterface|null $internalMeterProvider)

Build or resolve the trace provider.

LoggerProviderInterface|null
logs(array $configuration, Closure $resolveResource, Closure $resolveExporterFactory, MeterProviderInterface|null $internalMeterProvider)

Build or resolve the log provider.

ResourceInfo
resource(array $configuration, ProcessIdentity $identity)

Build the standard resource for one producing process.

array
exporterConfiguration(array $configuration, string $name)

Resolve one configured exporter record.

SamplerInterface
sampler(string $sampler, mixed $argument)

Resolve a standard or application sampler.

ExemplarFilterInterface
exemplarFilter(string $filter)

Resolve the configured exemplar filter.

object
resolve(string $class, string $contract, string $description)

Resolve and validate a configured service.

Details

at line 54
__construct(Container $container)

Create a provider factory.

Parameters

Container $container

at line 64
ProviderSet create(array $configuration, ProcessIdentity $identity, Closure $resolveExporterFactory)

Build the enabled worker-local signal providers.

Parameters

array $configuration
ProcessIdentity $identity
Closure $resolveExporterFactory

Return Value

ProviderSet

at line 99
protected MeterProviderInterface|null metrics(array $configuration, Closure $resolveResource, Closure $resolveExporterFactory)

Build or resolve the metrics provider.

Parameters

array $configuration
Closure $resolveResource
Closure $resolveExporterFactory

Return Value

MeterProviderInterface|null

at line 151
protected TracerProviderInterface|null traces(array $configuration, Closure $resolveResource, Closure $resolveExporterFactory, MeterProviderInterface|null $internalMeterProvider)

Build or resolve the trace provider.

Parameters

array $configuration
Closure $resolveResource
Closure $resolveExporterFactory
MeterProviderInterface|null $internalMeterProvider

Return Value

TracerProviderInterface|null

at line 202
protected LoggerProviderInterface|null logs(array $configuration, Closure $resolveResource, Closure $resolveExporterFactory, MeterProviderInterface|null $internalMeterProvider)

Build or resolve the log provider.

Parameters

array $configuration
Closure $resolveResource
Closure $resolveExporterFactory
MeterProviderInterface|null $internalMeterProvider

Return Value

LoggerProviderInterface|null

at line 249
protected ResourceInfo resource(array $configuration, ProcessIdentity $identity)

Build the standard resource for one producing process.

Parameters

array $configuration
ProcessIdentity $identity

Return Value

ResourceInfo

at line 293
protected array exporterConfiguration(array $configuration, string $name)

Resolve one configured exporter record.

Parameters

array $configuration
string $name

Return Value

array

at line 301
protected SamplerInterface sampler(string $sampler, mixed $argument)

Resolve a standard or application sampler.

Parameters

string $sampler
mixed $argument

Return Value

SamplerInterface

at line 319
protected ExemplarFilterInterface exemplarFilter(string $filter)

Resolve the configured exemplar filter.

Parameters

string $filter

Return Value

ExemplarFilterInterface

at line 337
protected object resolve(string $class, string $contract, string $description)

Resolve and validate a configured service.

Parameters

string $class
string $contract
string $description

Return Value

object