blob: feb1ed43912200c90623016a1037f780fc0f72ba (
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 ObservableCounterInterface
{
/**
* @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;
}
|