interface CounterInterface
Hierarchy
- interface \OpenTelemetry\API\Metrics\Instrument
- interface \OpenTelemetry\API\Metrics\SynchronousInstrument extends \OpenTelemetry\API\Metrics\Instrument
- interface \OpenTelemetry\API\Metrics\CounterInterface extends \OpenTelemetry\API\Metrics\SynchronousInstrument
- interface \OpenTelemetry\API\Metrics\SynchronousInstrument extends \OpenTelemetry\API\Metrics\Instrument
Expanded class hierarchy of CounterInterface
All classes that implement CounterInterface
4 files declare their use of CounterInterface
- Counter.php in vendor/
open-telemetry/ sdk/ Metrics/ Counter.php - Meter.php in vendor/
open-telemetry/ sdk/ Metrics/ Meter.php - NoopCounter.php in vendor/
open-telemetry/ api/ Metrics/ Noop/ NoopCounter.php - NoopMeter.php in vendor/
open-telemetry/ api/ Metrics/ Noop/ NoopMeter.php
File
-
vendor/
open-telemetry/ api/ Metrics/ CounterInterface.php, line 9
Namespace
OpenTelemetry\API\MetricsView source
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;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
CounterInterface::add | public | function | 1 |