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

Breadcrumb

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

function ExportingReader::doCollect

3 calls to ExportingReader::doCollect()
ExportingReader::collect in vendor/open-telemetry/sdk/Metrics/MetricReader/ExportingReader.php
ExportingReader::forceFlush in vendor/open-telemetry/sdk/Metrics/MetricReader/ExportingReader.php
ExportingReader::shutdown in vendor/open-telemetry/sdk/Metrics/MetricReader/ExportingReader.php

File

vendor/open-telemetry/sdk/Metrics/MetricReader/ExportingReader.php, line 99

Class

ExportingReader

Namespace

OpenTelemetry\SDK\Metrics\MetricReader

Code

private function doCollect() : bool {
    foreach ($this->registries as $registryId => $registry) {
        $streamIds = $this->streamIds[$registryId] ?? [];
        $registry->collectAndPush(array_keys($streamIds));
    }
    $metrics = [];
    foreach ($this->sources as $source) {
        $metrics[] = $source->collect();
    }
    if ($metrics === []) {
        return true;
    }
    return $this->exporter
        ->export($metrics);
}

API Navigation

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