OpenTelemetry PHP

InMemoryExporter
in package
implements MetricExporterInterface, AggregationTemporalitySelectorInterface

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

Properties

$closed  : bool
$metrics  : array<int, Metric>
$temporality  : string|Temporality|null

Methods

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

Properties

Methods

collect()

public collect([bool $reset = false ]) : array<int, Metric>
Parameters
$reset : bool = false
Return values
array<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