function SpanProcessorInterface::forceFlush
Export all ended spans to the configured Exporter that have not yet been exported. Returns `true` if the flush was successful, otherwise `false`.
See also
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.7…
4 methods override SpanProcessorInterface::forceFlush()
- BatchSpanProcessor::forceFlush in vendor/
open-telemetry/ sdk/ Trace/ SpanProcessor/ BatchSpanProcessor.php - Export all ended spans to the configured Exporter that have not yet been exported. Returns `true` if the flush was successful, otherwise `false`.
- MultiSpanProcessor::forceFlush in vendor/
open-telemetry/ sdk/ Trace/ SpanProcessor/ MultiSpanProcessor.php - @inheritDoc
- NoopSpanProcessor::forceFlush in vendor/
open-telemetry/ sdk/ Trace/ SpanProcessor/ NoopSpanProcessor.php - @inheritDoc
- SimpleSpanProcessor::forceFlush in vendor/
open-telemetry/ sdk/ Trace/ SpanProcessor/ SimpleSpanProcessor.php - Export all ended spans to the configured Exporter that have not yet been exported. Returns `true` if the flush was successful, otherwise `false`.
File
-
vendor/
open-telemetry/ sdk/ Trace/ SpanProcessorInterface.php, line 29
Class
- SpanProcessorInterface
- @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6…
Namespace
OpenTelemetry\SDK\TraceCode
public function forceFlush(?CancellationInterface $cancellation = null) : bool;