Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MeterInterface.php

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

MeterInterface

Namespace

OpenTelemetry\API\Metrics

Code

public function createGauge(string $name, ?string $unit = null, ?string $description = null, array $advisory = []) : GaugeInterface;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal