class NoopMeter
Hierarchy
- class \OpenTelemetry\API\Metrics\Noop\NoopMeter implements \OpenTelemetry\API\Metrics\MeterInterface
Expanded class hierarchy of NoopMeter
3 files declare their use of NoopMeter
- InstrumentationTrait.php in vendor/
open-telemetry/ api/ Instrumentation/ InstrumentationTrait.php - MeterProvider.php in vendor/
open-telemetry/ sdk/ Metrics/ MeterProvider.php - NoopMeterProvider.php in vendor/
open-telemetry/ sdk/ Metrics/ NoopMeterProvider.php
File
-
vendor/
open-telemetry/ api/ Metrics/ Noop/ NoopMeter.php, line 18
Namespace
OpenTelemetry\API\Metrics\NoopView source
final class NoopMeter implements MeterInterface {
public function batchObserve(callable $callback, AsynchronousInstrument $instrument, AsynchronousInstrument ...$instruments) : ObservableCallbackInterface {
return new NoopObservableCallback();
}
public function createCounter(string $name, ?string $unit = null, ?string $description = null, array $advisory = []) : CounterInterface {
return new NoopCounter();
}
public function createObservableCounter(string $name, ?string $unit = null, ?string $description = null, $advisory = [], callable ...$callbacks) : ObservableCounterInterface {
return new NoopObservableCounter();
}
public function createHistogram(string $name, ?string $unit = null, ?string $description = null, array $advisory = []) : HistogramInterface {
return new NoopHistogram();
}
public function createGauge(string $name, ?string $unit = null, ?string $description = null, array $advisory = []) : GaugeInterface {
return new NoopGauge();
}
public function createObservableGauge(string $name, ?string $unit = null, ?string $description = null, $advisory = [], callable ...$callbacks) : ObservableGaugeInterface {
return new NoopObservableGauge();
}
public function createUpDownCounter(string $name, ?string $unit = null, ?string $description = null, array $advisory = []) : UpDownCounterInterface {
return new NoopUpDownCounter();
}
public function createObservableUpDownCounter(string $name, ?string $unit = null, ?string $description = null, $advisory = [], callable ...$callbacks) : ObservableUpDownCounterInterface {
return new NoopObservableUpDownCounter();
}
}