OpenTelemetry PHP

Configurator
in package
implements ImplicitContextKeyedInterface

FinalYes

Configures the global (context scoped) instrumentation instances.

Tags
see
Configurator::activate()

Table of Contents

Interfaces

ImplicitContextKeyedInterface
Represents a value that can be stored within {@see ContextInterface}.

Properties

$eventLoggerProvider  : EventLoggerProviderInterface|null
$loggerProvider  : LoggerProviderInterface|null
$meterProvider  : MeterProviderInterface|null
$propagator  : TextMapPropagatorInterface|null
$tracerProvider  : TracerProviderInterface|null

Methods

activate()  : ScopeInterface
Adds `$this` to the {@see Context::getCurrent() current context} and makes the new {@see Context} the current context.
create()  : Configurator
Creates a configurator that uses parent instances for not configured values.
createNoop()  : Configurator
Creates a configurator that uses noop instances for not configured values.
storeInContext()  : ContextInterface
Returns a new {@see ContextInterface} created by setting `$this` into the provided [@see ContextInterface}.
withEventLoggerProvider()  : Configurator
withLoggerProvider()  : Configurator
withMeterProvider()  : Configurator
withPropagator()  : Configurator
withTracerProvider()  : Configurator
__construct()  : mixed

Properties

Methods

activate()

Adds `$this` to the {@see Context::getCurrent() current context} and makes the new {@see Context} the current context.

public activate() : ScopeInterface

ScopeInterface::detach() MUST be called to properly restore the previous context.

This method is equivalent to Context::getCurrent().with($value).activate();.

Return values
ScopeInterface

        
On this page

Search results