diff options
Diffstat (limited to 'vendor/open-telemetry/api/Metrics/HistogramInterface.php')
-rw-r--r-- | vendor/open-telemetry/api/Metrics/HistogramInterface.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vendor/open-telemetry/api/Metrics/HistogramInterface.php b/vendor/open-telemetry/api/Metrics/HistogramInterface.php new file mode 100644 index 000000000..22ddd1f3c --- /dev/null +++ b/vendor/open-telemetry/api/Metrics/HistogramInterface.php @@ -0,0 +1,21 @@ +<?php + +declare(strict_types=1); + +namespace OpenTelemetry\API\Metrics; + +use OpenTelemetry\Context\ContextInterface; + +interface HistogramInterface +{ + + /** + * @param float|int $amount non-negative amount to record + * @param iterable<non-empty-string, string|bool|float|int|array|null> $attributes + * attributes of the data point + * @param ContextInterface|false|null $context execution context + * + * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#record + */ + public function record($amount, iterable $attributes = [], $context = null): void; +} |