summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/sdk/Metrics/MetricRegistry/MetricWriterInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/open-telemetry/sdk/Metrics/MetricRegistry/MetricWriterInterface.php')
-rw-r--r--vendor/open-telemetry/sdk/Metrics/MetricRegistry/MetricWriterInterface.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/open-telemetry/sdk/Metrics/MetricRegistry/MetricWriterInterface.php b/vendor/open-telemetry/sdk/Metrics/MetricRegistry/MetricWriterInterface.php
new file mode 100644
index 000000000..e5ff7eb5c
--- /dev/null
+++ b/vendor/open-telemetry/sdk/Metrics/MetricRegistry/MetricWriterInterface.php
@@ -0,0 +1,20 @@
+<?php
+
+declare(strict_types=1);
+
+namespace OpenTelemetry\SDK\Metrics\MetricRegistry;
+
+use Closure;
+use OpenTelemetry\SDK\Metrics\Instrument;
+
+/**
+ * @internal
+ */
+interface MetricWriterInterface
+{
+ public function record(Instrument $instrument, $value, iterable $attributes = [], $context = null): void;
+
+ public function registerCallback(Closure $callback, Instrument $instrument, Instrument ...$instruments): int;
+
+ public function unregisterCallback(int $callbackId): void;
+}