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

Breadcrumb

  1. Drupal Core 11.1.x

CounterInterface.php

Namespace

OpenTelemetry\API\Metrics

File

vendor/open-telemetry/api/Metrics/CounterInterface.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\API\Metrics;

use OpenTelemetry\Context\ContextInterface;
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;

}

Interfaces

Title Deprecated Summary
CounterInterface

API Navigation

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