function MeterInterface::createGauge
Creates a `Gauge`.
@experimental
Parameters
string $name name of the instrument:
string|null $unit unit of measure:
string|null $description description of the instrument:
array $advisory an optional set of recommendations:
Return value
GaugeInterface created instrument
See also
https://opentelemetry.io/docs/specs/otel/metrics/api/#gauge-creation
3 methods override MeterInterface::createGauge()
- LateBindingMeter::createGauge in vendor/
open-telemetry/ api/ Metrics/ LateBindingMeter.php - Creates a `Gauge`.
- Meter::createGauge in vendor/
open-telemetry/ sdk/ Metrics/ Meter.php - Creates a `Gauge`.
- NoopMeter::createGauge in vendor/
open-telemetry/ api/ Metrics/ Noop/ NoopMeter.php - Creates a `Gauge`.
File
-
vendor/
open-telemetry/ api/ Metrics/ MeterInterface.php, line 115
Class
Namespace
OpenTelemetry\API\MetricsCode
public function createGauge(string $name, ?string $unit = null, ?string $description = null, array $advisory = []) : GaugeInterface;