blob: 65a2bb830f2342f34ceca0e916c1eb40df066b5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<?php
declare(strict_types=1);
namespace OpenTelemetry\API\Metrics\Noop;
use OpenTelemetry\API\Metrics\ObservableCallbackInterface;
use OpenTelemetry\API\Metrics\ObservableUpDownCounterInterface;
/**
* @internal
*/
final class NoopObservableUpDownCounter implements ObservableUpDownCounterInterface
{
public function observe(callable $callback, bool $weaken = false): ObservableCallbackInterface
{
return new NoopObservableCallback();
}
}
|