OpenTelemetry PHP

MetricExporterWithTemporalityInterface extends MetricExporterInterface, AggregationTemporalitySelectorInterface

Table of Contents

Methods

export()  : bool
shutdown()  : bool
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

It is recommended to return MetricMetadataInterface::temporality() if the exporter does not require a specific temporality.

Parameters
$metric : MetricMetadataInterface
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