OpenTelemetry PHP

ConsoleMetricExporter
in package
implements PushMetricExporterInterface, AggregationTemporalitySelectorInterface

Console metrics exporter.

Note that the output is human-readable JSON, not compatible with OTLP.

Table of Contents

Interfaces

PushMetricExporterInterface
AggregationTemporalitySelectorInterface

Properties

$temporality  : Temporality|string|null

Methods

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

Properties

Methods

export()

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

        
On this page

Search results