1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-07-27 16:47:59 +02:00
ttrss/vendor/open-telemetry/api/Metrics/CounterInterface.php
2023-10-20 21:13:39 +03:00

22 lines
639 B
PHP

<?php
declare(strict_types=1);
namespace OpenTelemetry\API\Metrics;
use OpenTelemetry\Context\ContextInterface;
interface CounterInterface
{
/**
* @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
* @param ContextInterface|false|null $context execution context
*
* @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#add
*/
public function add($amount, iterable $attributes = [], $context = null): void;
}