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

Breadcrumb

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

function MetricConverter::convertGauge

1 call to MetricConverter::convertGauge()
MetricConverter::convertMetric in vendor/open-telemetry/exporter-otlp/MetricConverter.php

File

vendor/open-telemetry/exporter-otlp/MetricConverter.php, line 143

Class

MetricConverter

Namespace

OpenTelemetry\Contrib\Otlp

Code

private function convertGauge(SDK\Metrics\Data\Gauge $gauge) : Gauge {
    $pGauge = new Gauge();
    foreach ($gauge->dataPoints as $dataPoint) {
        
        /** @psalm-suppress InvalidArgument */
        $pGauge->getDataPoints()[] = $this->convertNumberDataPoint($dataPoint);
    }
    return $pGauge;
}

API Navigation

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