SpanProcessorInterface
in
Tags
Table of Contents
Methods
- forceFlush() : bool
- Export all ended spans to the configured Exporter that have not yet been exported.
- onEnd() : void
- onStart() : void
- shutdown() : bool
- Cleanup; after shutdown, calling onStart, onEnd, or forceFlush is invalid Returns `false` is the processor is already shutdown, otherwise `true`.
Methods
forceFlush()
Export all ended spans to the configured Exporter that have not yet been exported.
public
forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Returns true
if the flush was successful, otherwise false
.
Parameters
- $cancellation : CancellationInterface|null = null
Tags
Return values
boolonEnd()
public
onEnd(ReadableSpanInterface $span) : void
Parameters
- $span : ReadableSpanInterface
Tags
onStart()
public
onStart(ReadWriteSpanInterface $span, ContextInterface $parentContext) : void
Parameters
- $span : ReadWriteSpanInterface
- $parentContext : ContextInterface
Tags
shutdown()
Cleanup; after shutdown, calling onStart, onEnd, or forceFlush is invalid Returns `false` is the processor is already shutdown, otherwise `true`.
public
shutdown([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null