summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/MetricMetadataInterface.php
blob: aa1a02d601bd069b21e2863ee9d80660abf4326a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

declare(strict_types=1);

namespace OpenTelemetry\SDK\Metrics;

use OpenTelemetry\SDK\Metrics\Data\Temporality;

interface MetricMetadataInterface
{
    /**
     * @return string|InstrumentType
     */
    public function instrumentType();

    public function name(): string;

    public function unit(): ?string;

    public function description(): ?string;

    /**
     * Returns the underlying temporality of this metric.
     *
     * @return string|Temporality internal temporality
     */
    public function temporality();
}