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

Breadcrumb

  1. Drupal Core 11.1.x

NoopCounter.php

Namespace

OpenTelemetry\API\Metrics\Noop

File

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

API Navigation

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