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

Breadcrumb

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

class NoopCounter

@internal

Hierarchy

  • class \OpenTelemetry\API\Metrics\Noop\NoopCounter implements \OpenTelemetry\API\Metrics\CounterInterface

Expanded class hierarchy of NoopCounter

File

vendor/open-telemetry/api/Metrics/Noop/NoopCounter.php, line 12

Namespace

OpenTelemetry\API\Metrics\Noop
View source
final class NoopCounter implements CounterInterface {
    public function add($amount, iterable $attributes = [], $context = null) : void {
        // no-op
    }
    public function isEnabled() : bool {
        return false;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
NoopCounter::add public function Overrides CounterInterface::add
NoopCounter::isEnabled public function

API Navigation

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