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

Breadcrumb

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

interface CounterInterface

Hierarchy

  • interface \OpenTelemetry\API\Metrics\Instrument
    • interface \OpenTelemetry\API\Metrics\SynchronousInstrument extends \OpenTelemetry\API\Metrics\Instrument
      • interface \OpenTelemetry\API\Metrics\CounterInterface extends \OpenTelemetry\API\Metrics\SynchronousInstrument

Expanded class hierarchy of CounterInterface

All classes that implement CounterInterface

4 files declare their use of CounterInterface
Counter.php in vendor/open-telemetry/sdk/Metrics/Counter.php
Meter.php in vendor/open-telemetry/sdk/Metrics/Meter.php
NoopCounter.php in vendor/open-telemetry/api/Metrics/Noop/NoopCounter.php
NoopMeter.php in vendor/open-telemetry/api/Metrics/Noop/NoopMeter.php

File

vendor/open-telemetry/api/Metrics/CounterInterface.php, line 9

Namespace

OpenTelemetry\API\Metrics
View source
interface CounterInterface extends SynchronousInstrument {
    
    /**
     * @param float|int $amount non-negative amount to increment by
     * @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes
     *        attributes of the data point
     *
     * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#add
     */
    public function add(float|int $amount, iterable $attributes = [], ContextInterface|false|null $context = null) : void;

}

Members

Title Sort descending Modifiers Object type Summary Overrides
CounterInterface::add public function 1

API Navigation

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