ObserverInterface.php
Namespace
OpenTelemetry\API\MetricsFile
-
vendor/
open-telemetry/ api/ Metrics/ ObserverInterface.php
View source
<?php
declare (strict_types=1);
namespace OpenTelemetry\API\Metrics;
interface ObserverInterface {
/**
* Records the given absolute datapoint.
*
* @param float|int $amount observed amount
* @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes
* attributes of the data point
*/
public function observe(float|int $amount, iterable $attributes = []) : void;
}
Interfaces
Title | Deprecated | Summary |
---|---|---|
ObserverInterface |