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

Breadcrumb

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

function BatchSpanProcessor::shouldFlush

1 call to BatchSpanProcessor::shouldFlush()
BatchSpanProcessor::flush in vendor/open-telemetry/sdk/Trace/SpanProcessor/BatchSpanProcessor.php

File

vendor/open-telemetry/sdk/Trace/SpanProcessor/BatchSpanProcessor.php, line 267

Class

BatchSpanProcessor

Namespace

OpenTelemetry\SDK\Trace\SpanProcessor

Code

private function shouldFlush() : bool {
    return !$this->flush
        ->isEmpty() || $this->autoFlush && !$this->queue
        ->isEmpty() || $this->autoFlush && $this->nextScheduledRun !== null && $this->clock
        ->now() > $this->nextScheduledRun;
}

API Navigation

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