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

Breadcrumb

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

function CounterInterface::add

Parameters

float|int $amount non-negative amount to increment by:

iterable<non-empty-string, string|bool|float|int|array|null> $attributes: attributes of the data point

See also

https://github.com/open-telemetry/opentelemetry-specification/blob/main…

1 method overrides CounterInterface::add()
NoopCounter::add in vendor/open-telemetry/api/Metrics/Noop/NoopCounter.php

File

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

Class

CounterInterface

Namespace

OpenTelemetry\API\Metrics

Code

public function add(float|int $amount, iterable $attributes = [], ContextInterface|false|null $context = null) : void;

API Navigation

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