Skip to content

Commit 62f2abc

Browse files
authored
Remove MeterInterface::isEnabled() and fix meter config re-enabling (#1387)
1 parent f74cbed commit 62f2abc

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

Metrics/LateBindingMeter.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,4 @@ public function createObservableUpDownCounter(string $name, ?string $unit = null
5858
{
5959
return ($this->meter ??= ($this->factory)())->createObservableUpDownCounter($name, $unit, $description, $advisory, $callbacks);
6060
}
61-
62-
public function isEnabled(): bool
63-
{
64-
return true;
65-
}
6661
}

Metrics/MeterInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,4 @@ public function createObservableUpDownCounter(
178178
array|callable $advisory = [],
179179
callable ...$callbacks,
180180
): ObservableUpDownCounterInterface;
181-
182-
public function isEnabled(): bool;
183181
}

Metrics/Noop/NoopMeter.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,4 @@ public function createObservableUpDownCounter(string $name, ?string $unit = null
5656
{
5757
return new NoopObservableUpDownCounter();
5858
}
59-
60-
public function isEnabled(): bool
61-
{
62-
return false;
63-
}
6459
}

0 commit comments

Comments
 (0)