From 92e627a913c9a686ff2461d5f8dca5f1644d855e Mon Sep 17 00:00:00 2001 From: Julien Ballestracci Date: Mon, 18 Dec 2023 17:19:43 +0100 Subject: [PATCH] upgrade to open-telemetry/api 1.0.1 --- src/Metrics/Meter.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Metrics/Meter.php b/src/Metrics/Meter.php index 9fca58c..6e17aa5 100644 --- a/src/Metrics/Meter.php +++ b/src/Metrics/Meter.php @@ -23,7 +23,7 @@ public function __construct( ) { } - public function createCounter(string $name, string $unit = null, string $description = null): CounterInterface + public function createCounter(string $name, string $unit = null, string $description = null, array $advisory = []): CounterInterface { return new CounterAdapter($name, $description ?: '', $this->collectorRegistry); } @@ -33,22 +33,22 @@ public function createObservableCounter(string $name, string $unit = null, strin throw new \LogicException(sprintf('Method %s is not implemented', __METHOD__)); } - public function createHistogram(string $name, string $unit = null, string $description = null): HistogramInterface + public function createHistogram(string $name, string $unit = null, string $description = null, array $advisory = []): HistogramInterface { return new HistogramAdapter($name, $description ?: '', $this->collectorRegistry); } - public function createObservableGauge(string $name, string $unit = null, string $description = null, callable ...$callbacks): ObservableGaugeInterface + public function createObservableGauge(string $name, string $unit = null, string $description = null, $advisory = [], callable ...$callbacks): ObservableGaugeInterface { throw new \LogicException(sprintf('Method %s is not implemented', __METHOD__)); } - public function createUpDownCounter(string $name, string $unit = null, string $description = null): UpDownCounterInterface + public function createUpDownCounter(string $name, string $unit = null, string $description = null, array $advisory = []): UpDownCounterInterface { return new UpDownCounterAdapter($name, $description ?: '', $this->collectorRegistry); } - public function createObservableUpDownCounter(string $name, string $unit = null, string $description = null, callable ...$callbacks): ObservableUpDownCounterInterface + public function createObservableUpDownCounter(string $name, string $unit = null, string $description = null, $advisory = [], callable ...$callbacks): ObservableUpDownCounterInterface { throw new \LogicException(sprintf('Method %s is not implemented', __METHOD__)); }