aboutsummaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/api/Metrics/MeterInterface.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2024-10-01 14:54:29 +0000
committerAndrew Dolgov <fox@fakecake.org>2024-10-01 14:54:29 +0000
commitdf33ddaea1e46b5b923440d6383fa3ae85c4d60b (patch)
tree89c510638669466453c7451f5eb493f50e850de0 /vendor/open-telemetry/api/Metrics/MeterInterface.php
parent8fcc68baf5b0ff964a0a4a045353462586e0e316 (diff)
parent7e0f5f295c0480023098edca5e3f5a806bd93bab (diff)
Merge branch 'drop-opentelemetry' into 'master'
drop opentelemetry See merge request tt-rss/tt-rss!68
Diffstat (limited to 'vendor/open-telemetry/api/Metrics/MeterInterface.php')
-rw-r--r--vendor/open-telemetry/api/Metrics/MeterInterface.php111
1 files changed, 0 insertions, 111 deletions
diff --git a/vendor/open-telemetry/api/Metrics/MeterInterface.php b/vendor/open-telemetry/api/Metrics/MeterInterface.php
deleted file mode 100644
index 6e06d9085..000000000
--- a/vendor/open-telemetry/api/Metrics/MeterInterface.php
+++ /dev/null
@@ -1,111 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace OpenTelemetry\API\Metrics;
-
-interface MeterInterface
-{
-
- /**
- * Creates a `Counter`.
- *
- * @param string $name name of the instrument
- * @param string|null $unit unit of measure
- * @param string|null $description description of the instrument
- * @return CounterInterface created instrument
- *
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#counter-creation
- */
- public function createCounter(
- string $name,
- ?string $unit = null,
- ?string $description = null
- ): CounterInterface;
-
- /**
- * Creates an `ObservableCounter`.
- *
- * @param string $name name of the instrument
- * @param string|null $unit unit of measure
- * @param string|null $description description of the instrument
- * @param callable ...$callbacks responsible for reporting measurements
- * @return ObservableCounterInterface created instrument
- *
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-counter-creation
- */
- public function createObservableCounter(
- string $name,
- ?string $unit = null,
- ?string $description = null,
- callable ...$callbacks
- ): ObservableCounterInterface;
-
- /**
- * Creates a `Histogram`.
- *
- * @param string $name name of the instrument
- * @param string|null $unit unit of measure
- * @param string|null $description description of the instrument
- * @return HistogramInterface created instrument
- *
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#histogram-creation
- */
- public function createHistogram(
- string $name,
- ?string $unit = null,
- ?string $description = null
- ): HistogramInterface;
-
- /**
- * Creates an `ObservableGauge`.
- *
- * @param string $name name of the instrument
- * @param string|null $unit unit of measure
- * @param string|null $description description of the instrument
- * @param callable ...$callbacks responsible for reporting measurements
- * @return ObservableGaugeInterface created instrument
- *
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-gauge-creation
- */
- public function createObservableGauge(
- string $name,
- ?string $unit = null,
- ?string $description = null,
- callable ...$callbacks
- ): ObservableGaugeInterface;
-
- /**
- * Creates an `UpDownCounter`.
- *
- * @param string $name name of the instrument
- * @param string|null $unit unit of measure
- * @param string|null $description description of the instrument
- * @return UpDownCounterInterface created instrument
- *
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#updowncounter-creation
- */
- public function createUpDownCounter(
- string $name,
- ?string $unit = null,
- ?string $description = null
- ): UpDownCounterInterface;
-
- /**
- * Creates an `ObservableUpDownCounter`.
- *
- * @param string $name name of the instrument
- * @param string|null $unit unit of measure
- * @param string|null $description description of the instrument
- * @param callable ...$callbacks responsible for reporting measurements
- * @return ObservableUpDownCounterInterface created instrument
- *
- * @see https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/api.md#asynchronous-updowncounter-creation
- */
- public function createObservableUpDownCounter(
- string $name,
- ?string $unit = null,
- ?string $description = null,
- callable ...$callbacks
- ): ObservableUpDownCounterInterface;
-}