OpenTelemetry PHP

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

TracerProviderInterface

Properties

$factory  : Closure
$tracerProvider  : TracerProviderInterface|null

Methods

__construct()  : mixed
getTracer()  : TracerInterface

Properties

Methods

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> = []
Return values
TracerInterface

        
On this page

Search results