21 lines
488 B
PHP
21 lines
488 B
PHP
|
<?php
|
||
|
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace OpenTelemetry\SDK\Metrics\MetricRegistry;
|
||
|
|
||
|
use Closure;
|
||
|
use OpenTelemetry\SDK\Metrics\Instrument;
|
||
|
|
||
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
|
interface MetricWriterInterface
|
||
|
{
|
||
|
public function record(Instrument $instrument, $value, iterable $attributes = [], $context = null): void;
|
||
|
|
||
|
public function registerCallback(Closure $callback, Instrument $instrument, Instrument ...$instruments): int;
|
||
|
|
||
|
public function unregisterCallback(int $callbackId): void;
|
||
|
}
|