OpenTelemetry PHP

AggregationTemporalitySelectorInterface

Table of Contents

Methods

temporality()  : string|Temporality|null
Returns the temporality to use for the given metric.

Methods

temporality()

Returns the temporality to use for the given metric.

public temporality(MetricMetadataInterface $metric) : string|Temporality|null

Return Temporality::CUMULATIVE if the exporter does not require a specific temporality.

Parameters
$metric : MetricMetadataInterface
Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.62.0/specification/metrics/sdk.md#metricreader
Return values
string|Temporality|null —

temporality to use, or null to signal that the given metric should not be exported by this exporter

On this page

Search results