function GaugeInterface::record
Parameters
float|int $amount current absolute value:
iterable<non-empty-string, string|bool|float|int|array|null> $attributes: attributes of the data point
ContextInterface|false|null $context execution context:
See also
https://opentelemetry.io/docs/specs/otel/metrics/api/#record-1
1 method overrides GaugeInterface::record()
- NoopGauge::record in vendor/
open-telemetry/ api/ Metrics/ Noop/ NoopGauge.php
File
-
vendor/
open-telemetry/ api/ Metrics/ GaugeInterface.php, line 27
Class
- GaugeInterface
- A synchronous instrument which can be used to record non-additive values.
Namespace
OpenTelemetry\API\MetricsCode
public function record(float|int $amount, iterable $attributes = [], ContextInterface|false|null $context = null) : void;