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
- $spanProcessor : SpanProcessorInterface
Methods
- __construct() : mixed
- getIdGenerator() : IdGeneratorInterface
- getResource() : ResourceInfo
- getSampler() : SamplerInterface
- getSpanLimits() : SpanLimits
- getSpanProcessor() : SpanProcessorInterface
- hasShutdown() : bool
- shutdown() : bool
- Returns `false` is the provider is already shutdown, otherwise `true`.
Properties
$idGenerator read-only
private
IdGeneratorInterface
$idGenerator
$resource read-only
private
ResourceInfo
$resource
$sampler read-only
private
SamplerInterface
$sampler
$shutdownResult
private
bool|null
$shutdownResult
= null
$spanLimits read-only
private
SpanLimits
$spanLimits
$spanProcessor read-only
private
SpanProcessorInterface
$spanProcessor
Methods
__construct()
public
__construct(IdGeneratorInterface $idGenerator, ResourceInfo $resource, SpanLimits $spanLimits, SamplerInterface $sampler, array<string|int, mixed> $spanProcessors) : mixed
Parameters
- $idGenerator : IdGeneratorInterface
- $resource : ResourceInfo
- $spanLimits : SpanLimits
- $sampler : SamplerInterface
- $spanProcessors : array<string|int, mixed>
getIdGenerator()
public
getIdGenerator() : IdGeneratorInterface
Return values
IdGeneratorInterfacegetResource()
public
getResource() : ResourceInfo
Return values
ResourceInfogetSampler()
public
getSampler() : SamplerInterface
Return values
SamplerInterfacegetSpanLimits()
public
getSpanLimits() : SpanLimits
Return values
SpanLimitsgetSpanProcessor()
public
getSpanProcessor() : SpanProcessorInterface
Return values
SpanProcessorInterfacehasShutdown()
public
hasShutdown() : bool
Return values
boolshutdown()
Returns `false` is the provider is already shutdown, otherwise `true`.
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null