ttrss/vendor/open-telemetry/sdk/Metrics/StalenessHandler/NoopStalenessHandler.php

31 lines
576 B
PHP
Raw Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\SDK\Metrics\StalenessHandler;
use Closure;
use OpenTelemetry\SDK\Metrics\ReferenceCounterInterface;
use OpenTelemetry\SDK\Metrics\StalenessHandlerInterface;
/**
* @internal
*/
final class NoopStalenessHandler implements StalenessHandlerInterface, ReferenceCounterInterface
{
public function acquire(bool $persistent = false): void
{
// no-op
}
public function release(): void
{
// no-op
}
public function onStale(Closure $callback): void
{
// no-op
}
}