NoopSpanProcessor
in package
implements
SpanProcessorInterface
Table of Contents
Interfaces
Properties
- $instance : SpanProcessorInterface|null
Methods
- forceFlush() : bool
- Export all ended spans to the configured Exporter that have not yet been exported.
- getInstance() : SpanProcessorInterface
- 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`.
Properties
$instance
private
static SpanProcessorInterface|null
$instance
= null
Methods
forceFlush()
Export all ended spans to the configured Exporter that have not yet been exported.
public
forceFlush([CancellationInterface|null $cancellation = null ]) : bool
Parameters
- $cancellation : CancellationInterface|null = null
Tags
Return values
boolgetInstance()
public
static getInstance() : SpanProcessorInterface
Return values
SpanProcessorInterfaceonEnd()
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