MeterProviderBuilder
in package
Table of Contents
Properties
- $clock : ClockInterface|null
- $configurator : Configurator|null
- $exemplarFilter : ExemplarFilterInterface|null
- $metricReaders : array<string|int, mixed>
- $resource : ResourceInfo|null
Methods
- addReader() : self
- build() : MeterProviderInterface
- setClock() : self
- setConfigurator() : self
- setExemplarFilter() : self
- setResource() : self
Properties
$clock
private
ClockInterface|null
$clock
= null
$configurator
private
Configurator|null
$configurator
= null
$exemplarFilter
private
ExemplarFilterInterface|null
$exemplarFilter
= null
$metricReaders
private
array<string|int, mixed>
$metricReaders
= []
$resource
private
ResourceInfo|null
$resource
= null
Methods
addReader()
public
addReader(MetricReaderInterface $reader) : self
Parameters
- $reader : MetricReaderInterface
Return values
selfbuild()
public
build() : MeterProviderInterface
Tags
Return values
MeterProviderInterfacesetClock()
public
setClock(ClockInterface $clock) : self
Parameters
- $clock : ClockInterface
Return values
selfsetConfigurator()
public
setConfigurator(Configurator $configurator) : self
Parameters
- $configurator : Configurator
Return values
selfsetExemplarFilter()
public
setExemplarFilter(ExemplarFilterInterface $exemplarFilter) : self
Parameters
- $exemplarFilter : ExemplarFilterInterface
Return values
selfsetResource()
public
setResource(ResourceInfo $resource) : self
Parameters
- $resource : ResourceInfo