OpenTelemetry PHP

TracerProvider
in package
implements TracerProviderInterface

FinalYes

Table of Contents

Interfaces

TracerProviderInterface

Properties

$configurator  : Configurator|null
$instrumentationScopeFactory  : InstrumentationScopeFactoryInterface
$tracers  : WeakMap
$tracerSharedState  : TracerSharedState

Methods

__construct()  : mixed
builder()  : TracerProviderBuilder
forceFlush()  : bool
getSampler()  : SamplerInterface
getTracer()  : TracerInterface
shutdown()  : bool
Returns `false` is the provider is already shutdown, otherwise `true`.
updateConfigurator()  : void
Update the {@link Configurator} for a {@link TracerProvider}, which will reconfigure all tracers created from the provider.

Properties

Methods

__construct()

public __construct([array<int, SpanProcessorInterface>|SpanProcessorInterface|null $spanProcessors = [] ][, SamplerInterface|null $sampler = null ][, ResourceInfo|null $resource = null ][, SpanLimits|null $spanLimits = null ][, IdGeneratorInterface|null $idGenerator = null ][, InstrumentationScopeFactoryInterface|null $instrumentationScopeFactory = null ][, Configurator|null $configurator = null ]) : mixed
Parameters
$spanProcessors : array<int, SpanProcessorInterface>|SpanProcessorInterface|null = []
$sampler : SamplerInterface|null = null
$resource : ResourceInfo|null = null
$spanLimits : SpanLimits|null = null
$idGenerator : IdGeneratorInterface|null = null
$instrumentationScopeFactory : InstrumentationScopeFactoryInterface|null = null
$configurator : Configurator|null = null

getTracer()

public getTracer(string $name[, string|null $version = null ][, string|null $schemaUrl = null ][, iterable<string|int, mixed> $attributes = [] ]) : TracerInterface
Parameters
$name : string
$version : string|null = null
$schemaUrl : string|null = null
$attributes : iterable<string|int, mixed> = []
Tags
inheritDoc
Return values
TracerInterface

updateConfigurator()

Update the {@link Configurator} for a {@link TracerProvider}, which will reconfigure all tracers created from the provider.

public updateConfigurator(Configurator $configurator) : void
Parameters
$configurator : Configurator
Tags
experimental

        
On this page

Search results