Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NoopGauge.php

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\Noop
View 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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal