ttrss/vendor/open-telemetry/api/Metrics/ObservableCounterInterface.php

17 lines
420 B
PHP
Raw Permalink Normal View History

2023-10-20 14:12:29 +00:00
<?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;
}