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

Breadcrumb

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

function ExportingReader::forceFlush

Overrides MetricReaderInterface::forceFlush

File

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

Class

ExportingReader

Namespace

OpenTelemetry\SDK\Metrics\MetricReader

Code

public function forceFlush() : bool {
    if ($this->closed) {
        return false;
    }
    if ($this->exporter instanceof PushMetricExporterInterface) {
        $collect = $this->doCollect();
        $forceFlush = $this->exporter
            ->forceFlush();
        return $collect && $forceFlush;
    }
    return true;
}

API Navigation

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