OpenTelemetry PHP

MultiSpanProcessor
in package
implements SpanProcessorInterface

FinalYes

Class SpanMultiProcessor is a SpanProcessor that forwards all events to an array of SpanProcessors.

Table of Contents

Interfaces

SpanProcessorInterface

Properties

$processors  : array<int, SpanProcessorInterface>

Methods

__construct()  : mixed
addSpanProcessor()  : void
forceFlush()  : bool
Export all ended spans to the configured Exporter that have not yet been exported.
getSpanProcessors()  : array<int, 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

Methods

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
Tags
inheritDoc
Return values
bool

        
On this page

Search results