OpenTelemetry PHP

TracerSharedState
in package

FinalYes

Stores shared state/config between all {@see API\TracerInterface} created via the same {@see API\TracerProviderInterface}.

Table of Contents

Properties

$idGenerator  : IdGeneratorInterface
$resource  : ResourceInfo
$sampler  : SamplerInterface
$shutdownResult  : bool|null
$spanLimits  : SpanLimits
$spanLiveCounter  : UpDownCounterInterface|null
$spanProcessor  : SpanProcessorInterface
$spanStartedCounter  : CounterInterface|null

Methods

__construct()  : mixed
getIdGenerator()  : IdGeneratorInterface
getResource()  : ResourceInfo
getSampler()  : SamplerInterface
getSpanLimits()  : SpanLimits
getSpanLiveCounter()  : UpDownCounterInterface|null
getSpanProcessor()  : SpanProcessorInterface
getSpanStartedCounter()  : CounterInterface|null
hasShutdown()  : bool
shutdown()  : bool
Returns `false` is the provider is already shutdown, otherwise `true`.

Properties

Methods

__construct()

public __construct(IdGeneratorInterface $idGenerator, ResourceInfo $resource, SpanLimits $spanLimits, SamplerInterface $sampler, array<string|int, mixed> $spanProcessors[, MeterProviderInterface|null $meterProvider = null ]) : mixed
Parameters
$idGenerator : IdGeneratorInterface
$resource : ResourceInfo
$spanLimits : SpanLimits
$sampler : SamplerInterface
$spanProcessors : array<string|int, mixed>
$meterProvider : MeterProviderInterface|null = null

        
On this page

Search results