ttrss/vendor/open-telemetry/api/Metrics/UpDownCounterInterface.php

20 lines
520 B
PHP
Raw Permalink Normal View History

2023-10-20 14:12:29 +00:00
<?php
declare(strict_types=1);
namespace OpenTelemetry\API\Metrics;
use OpenTelemetry\Context\ContextInterface;
interface UpDownCounterInterface
{
/**
* @param float|int $amount amount to increment / decrement 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
*/
public function add($amount, iterable $attributes = [], $context = null): void;
}