Configurator
in package
FinalYes
Tags
Table of Contents
Properties
- $configs : WeakMap<InstrumentationScopeInterface, T>
- $configurators : array<int, ConfiguratorClosure>
- $factory : callable(InstrumentationScopeInterface): T
Methods
- __construct() : mixed
- logger() : Configurator<string|int, LoggerConfig>
- Create a default Configurator for a LoggerConfig
- meter() : Configurator<string|int, MeterConfig>
- Create a default Configurator for a MeterConfig
- resolve() : T
- tracer() : Configurator<string|int, TracerConfig>
- Create a default Configurator for a TracerConfig
- with() : self
- namePattern() : string|null
Properties
$configs
private
WeakMap<InstrumentationScopeInterface, T>
$configs
$configurators
private
array<int, ConfiguratorClosure>
$configurators
= []
$factory read-only
private
callable(InstrumentationScopeInterface): T
$factory
Methods
__construct()
public
__construct(callable(InstrumentationScopeInterface): T $factory) : mixed
Parameters
- $factory : callable(InstrumentationScopeInterface): T
Tags
logger()
Create a default Configurator for a LoggerConfig
public
static logger() : Configurator<string|int, LoggerConfig>
Return values
Configurator<string|int, LoggerConfig>meter()
Create a default Configurator for a MeterConfig
public
static meter() : Configurator<string|int, MeterConfig>
Return values
Configurator<string|int, MeterConfig>resolve()
public
resolve(InstrumentationScopeInterface $instrumentationScope) : T
Parameters
- $instrumentationScope : InstrumentationScopeInterface
Return values
Ttracer()
Create a default Configurator for a TracerConfig
public
static tracer() : Configurator<string|int, TracerConfig>
Return values
Configurator<string|int, TracerConfig>with()
public
with(callable(T, InstrumentationScopeInterface): void $closure, string|null $name[, string|null $version = null ][, string|null $schemaUrl = null ]) : self
Parameters
- $closure : callable(T, InstrumentationScopeInterface): void
- $name : string|null
- $version : string|null = null
- $schemaUrl : string|null = null
Return values
selfnamePattern()
private
static namePattern(string|null $name) : string|null
Parameters
- $name : string|null