NoopCounter.php
Namespace
OpenTelemetry\API\Metrics\NoopFile
-
vendor/
open-telemetry/ api/ Metrics/ Noop/ NoopCounter.php
View source
<?php
declare (strict_types=1);
namespace OpenTelemetry\API\Metrics\Noop;
use OpenTelemetry\API\Metrics\CounterInterface;
/**
* @internal
*/
final class NoopCounter implements CounterInterface {
public function add($amount, iterable $attributes = [], $context = null) : void {
// no-op
}
public function isEnabled() : bool {
return false;
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
NoopCounter | @internal |