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
Namespace
OpenTelemetry\SDK\Trace\SpanProcessorCode
private function shouldFlush() : bool {
return !$this->flush
->isEmpty() || $this->autoFlush && !$this->queue
->isEmpty() || $this->autoFlush && $this->nextScheduledRun !== null && $this->clock
->now() > $this->nextScheduledRun;
}