LateBindingTracerProvider
in package
implements
TracerProviderInterface
Late binding providers are designed to be used by Instrumentation, while we do not have control over when all components (propagators, etc) which are registered through composer.autoload.files are actually loaded. It means that tracers etc are not fetched from Globals until the last possible instant (ie, when they try to create a span, get an instrument, etc).
In the future, when everything uses SPI, this will be removed.
Table of Contents
Interfaces
Properties
- $factory : Closure
- $tracerProvider : TracerProviderInterface|null
Methods
- __construct() : mixed
- getTracer() : TracerInterface
Properties
$factory read-only
private
Closure
$factory
$tracerProvider
private
TracerProviderInterface|null
$tracerProvider
= null
Methods
__construct()
public
__construct(callable(): TracerProviderInterface $factory) : mixed
Parameters
- $factory : callable(): TracerProviderInterface
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> = []