summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/api/Metrics/ObservableUpDownCounterInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/open-telemetry/api/Metrics/ObservableUpDownCounterInterface.php')
-rw-r--r--vendor/open-telemetry/api/Metrics/ObservableUpDownCounterInterface.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/vendor/open-telemetry/api/Metrics/ObservableUpDownCounterInterface.php b/vendor/open-telemetry/api/Metrics/ObservableUpDownCounterInterface.php
new file mode 100644
index 000000000..79548dec6
--- /dev/null
+++ b/vendor/open-telemetry/api/Metrics/ObservableUpDownCounterInterface.php
@@ -0,0 +1,16 @@
+<?php
+
+declare(strict_types=1);
+
+namespace OpenTelemetry\API\Metrics;
+
+interface ObservableUpDownCounterInterface
+{
+
+ /**
+ * @param callable(ObserverInterface): void $callback function responsible for
+ * reporting the measurements (as absolute values)
+ * @return ObservableCallbackInterface token to detach callback
+ */
+ public function observe(callable $callback): ObservableCallbackInterface;
+}