class NoopGauge
@internal
Hierarchy
- class \OpenTelemetry\API\Metrics\Noop\NoopGauge implements \OpenTelemetry\API\Metrics\GaugeInterface
Expanded class hierarchy of NoopGauge
File
-
vendor/
open-telemetry/ api/ Metrics/ Noop/ NoopGauge.php, line 12
Namespace
OpenTelemetry\API\Metrics\NoopView source
final class NoopGauge implements GaugeInterface {
public function record(float|int $amount, iterable $attributes = [], $context = null) : void {
// no-op
}
public function isEnabled() : bool {
return false;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title |
---|---|---|---|---|
NoopGauge::isEnabled | public | function | ||
NoopGauge::record | public | function | Overrides GaugeInterface::record |