ttrss/vendor/open-telemetry/api/Metrics/Noop/NoopObservableUpDownCounter...

20 lines
465 B
PHP
Raw Permalink Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\API\Metrics\Noop;
use OpenTelemetry\API\Metrics\ObservableCallbackInterface;
use OpenTelemetry\API\Metrics\ObservableUpDownCounterInterface;
/**
* @internal
*/
final class NoopObservableUpDownCounter implements ObservableUpDownCounterInterface
{
public function observe(callable $callback, bool $weaken = false): ObservableCallbackInterface
{
return new NoopObservableCallback();
}
}