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

declare(strict_types=1);

namespace OpenTelemetry\API\Metrics;

interface ObservableUpDownCounterInterface
{

    /**
     * @param callable(ObserverInterface): void $callback function responsible for
     *        reporting the measurements (as absolute values)
     * @return ObservableCallbackInterface token to detach callback
     */
    public function observe(callable $callback): ObservableCallbackInterface;
}