ttrss/vendor/open-telemetry/api/Metrics/Noop/NoopObservableCounter.php

20 lines
447 B
PHP

<?php
declare(strict_types=1);
namespace OpenTelemetry\API\Metrics\Noop;
use OpenTelemetry\API\Metrics\ObservableCallbackInterface;
use OpenTelemetry\API\Metrics\ObservableCounterInterface;
/**
* @internal
*/
final class NoopObservableCounter implements ObservableCounterInterface
{
public function observe(callable $callback, bool $weaken = false): ObservableCallbackInterface
{
return new NoopObservableCallback();
}
}