summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/api/Metrics/ObserverInterface.php
blob: 36e0ea79186634cf205c1778d50a265a04e9484f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

declare(strict_types=1);

namespace OpenTelemetry\API\Metrics;

interface ObserverInterface
{

    /**
     * Records the given absolute datapoint.
     *
     * @param float|int $amount observed amount
     * @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes
     *        attributes of the data point
     */
    public function observe($amount, iterable $attributes = []): void;
}