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

Breadcrumb

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

function UpDownCounterInterface::add

Parameters

float|int $amount amount to increment / decrement by:

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

ContextInterface|false|null $context execution context:

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

File

vendor/open-telemetry/api/Metrics/UpDownCounterInterface.php, line 18

Class

UpDownCounterInterface

Namespace

OpenTelemetry\API\Metrics

Code

public function add($amount, iterable $attributes = [], $context = null) : void;

API Navigation

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