diff options
Diffstat (limited to 'vendor/open-telemetry/api/Metrics/ObserverInterface.php')
-rw-r--r-- | vendor/open-telemetry/api/Metrics/ObserverInterface.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/open-telemetry/api/Metrics/ObserverInterface.php b/vendor/open-telemetry/api/Metrics/ObserverInterface.php new file mode 100644 index 000000000..36e0ea791 --- /dev/null +++ b/vendor/open-telemetry/api/Metrics/ObserverInterface.php @@ -0,0 +1,18 @@ +<?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($amount, iterable $attributes = []): void; +} |