OpenTelemetry PHP

ExportingReader
in package
implements MetricReaderInterface, MetricSourceRegistryInterface, MetricSourceRegistryUnregisterInterface, DefaultAggregationProviderInterface uses DefaultAggregationProviderTrait

FinalYes

Table of Contents

Interfaces

MetricReaderInterface
MetricSourceRegistryInterface
MetricSourceRegistryUnregisterInterface
DefaultAggregationProviderInterface

Properties

$closed  : bool
$exporter  : MetricExporterInterface
$registries  : array<int, MetricCollectorInterface>
$sources  : array<int, MetricSourceInterface>
$streamIds  : array<int, array<int, array<int, int>>>

Methods

__construct()  : mixed
add()  : void
collect()  : bool
defaultAggregation()  : AggregationInterface|null
forceFlush()  : bool
shutdown()  : bool
unregisterStream()  : void
doCollect()  : bool

Properties

$registries

private array<int, MetricCollectorInterface> $registries = []

$streamIds

private array<int, array<int, array<int, int>>> $streamIds = []

Methods

collect()

public collect() : bool
Attributes
#[Override]
Return values
bool

defaultAggregation()

public defaultAggregation(mixed $instrumentType[, array<string|int, mixed> $advisory = [] ]) : AggregationInterface|null
Parameters
$instrumentType : mixed
$advisory : array<string|int, mixed> = []
Attributes
#[Override]
Return values
AggregationInterface|null

forceFlush()

public forceFlush() : bool
Attributes
#[Override]
Return values
bool

shutdown()

public shutdown() : bool
Attributes
#[Override]
Return values
bool

unregisterStream()

public unregisterStream(MetricCollectorInterface $collector, int $streamId) : void
Parameters
$collector : MetricCollectorInterface
$streamId : int
Attributes
#[Override]

        
On this page

Search results