summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/AggregationTemporalitySelectorInterface.php
blob: f046d033d83d2edda1cbc26f3309f726fa9106bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Metrics;

use OpenTelemetry\SDK\Metrics\Data\Temporality;

interface AggregationTemporalitySelectorInterface
{
    /**
     * Returns the temporality to use for the given metric.
     *
     * It is recommended to return {@see MetricMetadataInterface::temporality()}
     * if the exporter does not require a specific temporality.
     *
     * @return string|Temporality|null temporality to use, or null to signal
     *         that the given metric should not be exported by this exporter
     */
    public function temporality(MetricMetadataInterface $metric);
}