OpenTelemetry PHP

InMemoryExporter
in package
implements MetricExporterInterface, AggregationTemporalitySelectorInterface, PushMetricExporterInterface

FinalYes
Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/sdk_exporters/in-memory.md

Table of Contents

Interfaces

MetricExporterInterface
AggregationTemporalitySelectorInterface
PushMetricExporterInterface

Properties

$closed  : bool
$storage  : ArrayObject
$temporality  : string|Temporality|null

Methods

__construct()  : mixed
collect()  : array<string|int, Metric>
export()  : bool
forceFlush()  : bool
shutdown()  : bool
temporality()  : string|Temporality|null
Returns the temporality to use for the given metric.

Properties

Methods

__construct()

public __construct([ArrayObject $storage = new ArrayObject() ][, string|Temporality|null $temporality = null ]) : mixed
Parameters
$storage : ArrayObject = new ArrayObject()
$temporality : string|Temporality|null = null
Tags
template-implements

$storage

collect()

public collect([bool $reset = false ]) : array<string|int, Metric>
Parameters
$reset : bool = false
Return values
array<string|int, Metric>

export()

public export(iterable<string|int, mixed> $batch) : bool
Parameters
$batch : iterable<string|int, mixed>
Return values
bool

        
On this page

Search results