blob: afe59a777e191cfe52849b375a9d510fee87836f (
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 ObservableGaugeInterface
{
/**
* @param callable(ObserverInterface): void $callback function responsible for
* reporting the measurements
* @return ObservableCallbackInterface token to detach callback
*/
public function observe(callable $callback): ObservableCallbackInterface;
}
|