SdkBuilder
in package
Table of Contents
Properties
- $autoShutdown : bool
- $eventLoggerProvider : EventLoggerProviderInterface|null
- $loggerProvider : LoggerProviderInterface|null
- $meterProvider : MeterProviderInterface|null
- $propagator : TextMapPropagatorInterface|null
- $tracerProvider : TracerProviderInterface|null
Methods
- build() : Sdk
- buildAndRegisterGlobal() : ScopeInterface
- setAutoShutdown() : self
- Automatically shut down providers on process completion. If not set, the user is responsible for calling `shutdown`.
- setEventLoggerProvider() : self
- setLoggerProvider() : self
- setMeterProvider() : self
- setPropagator() : self
- setTracerProvider() : self
Properties
$autoShutdown
private
bool
$autoShutdown
= false
$eventLoggerProvider
private
EventLoggerProviderInterface|null
$eventLoggerProvider
= null
$loggerProvider
private
LoggerProviderInterface|null
$loggerProvider
= null
$meterProvider
private
MeterProviderInterface|null
$meterProvider
= null
$propagator
private
TextMapPropagatorInterface|null
$propagator
= null
$tracerProvider
private
TracerProviderInterface|null
$tracerProvider
= null
Methods
build()
public
build() : Sdk
Return values
SdkbuildAndRegisterGlobal()
public
buildAndRegisterGlobal() : ScopeInterface
Return values
ScopeInterfacesetAutoShutdown()
Automatically shut down providers on process completion. If not set, the user is responsible for calling `shutdown`.
public
setAutoShutdown(bool $shutdown) : self
Parameters
- $shutdown : bool
Return values
selfsetEventLoggerProvider()
public
setEventLoggerProvider(EventLoggerProviderInterface $eventLoggerProvider) : self
Parameters
- $eventLoggerProvider : EventLoggerProviderInterface
Return values
selfsetLoggerProvider()
public
setLoggerProvider(LoggerProviderInterface $loggerProvider) : self
Parameters
- $loggerProvider : LoggerProviderInterface
Return values
selfsetMeterProvider()
public
setMeterProvider(MeterProviderInterface $meterProvider) : self
Parameters
- $meterProvider : MeterProviderInterface
Return values
selfsetPropagator()
public
setPropagator(TextMapPropagatorInterface $propagator) : self
Parameters
- $propagator : TextMapPropagatorInterface
Return values
selfsetTracerProvider()
public
setTracerProvider(TracerProviderInterface $provider) : self
Parameters
- $provider : TracerProviderInterface