Package io.opentelemetry.sdk.trace
Class MultiSpanProcessor
- java.lang.Object
-
- io.opentelemetry.sdk.trace.MultiSpanProcessor
-
- All Implemented Interfaces:
SpanProcessor
@Deprecated public final class MultiSpanProcessor extends Object implements SpanProcessor
Deprecated.Implementation of theSpanProcessor
that simply forwards all received events to a list ofSpanProcessor
s.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static SpanProcessor
create(List<SpanProcessor> spanProcessorList)
Deprecated.io.opentelemetry.sdk.common.CompletableResultCode
forceFlush()
Deprecated.Processes all span events that have not yet been processed.boolean
isEndRequired()
Deprecated.Returnstrue
if thisSpanProcessor
requires end events.boolean
isStartRequired()
Deprecated.Returnstrue
if thisSpanProcessor
requires start events.void
onEnd(ReadableSpan readableSpan)
Deprecated.Called when aSpan
is ended, if theSpan.isRecording()
returns true.void
onStart(io.opentelemetry.context.Context parentContext, ReadWriteSpan readableSpan)
Deprecated.Called when aSpan
is started, if theSpan.isRecording()
returns true.io.opentelemetry.sdk.common.CompletableResultCode
shutdown()
Deprecated.Processes all span events that have not yet been processed and closes used resources.
-
-
-
Method Detail
-
create
@Deprecated public static SpanProcessor create(List<SpanProcessor> spanProcessorList)
Deprecated.Creates a newMultiSpanProcessor
.- Parameters:
spanProcessorList
- theList
ofSpanProcessor
s.- Returns:
- a new
MultiSpanProcessor
. - Throws:
NullPointerException
- if thespanProcessorList
isnull
.
-
onStart
public void onStart(io.opentelemetry.context.Context parentContext, ReadWriteSpan readableSpan)
Deprecated.Description copied from interface:SpanProcessor
Called when aSpan
is started, if theSpan.isRecording()
returns true.This method is called synchronously on the execution thread, should not throw or block the execution thread.
- Specified by:
onStart
in interfaceSpanProcessor
- Parameters:
parentContext
- the parentContext
of the span that just started.readableSpan
- theReadableSpan
that just started.
-
isStartRequired
public boolean isStartRequired()
Deprecated.Description copied from interface:SpanProcessor
Returnstrue
if thisSpanProcessor
requires start events.- Specified by:
isStartRequired
in interfaceSpanProcessor
- Returns:
true
if thisSpanProcessor
requires start events.
-
onEnd
public void onEnd(ReadableSpan readableSpan)
Deprecated.Description copied from interface:SpanProcessor
Called when aSpan
is ended, if theSpan.isRecording()
returns true.This method is called synchronously on the execution thread, should not throw or block the execution thread.
- Specified by:
onEnd
in interfaceSpanProcessor
- Parameters:
readableSpan
- theReadableSpan
that just ended.
-
isEndRequired
public boolean isEndRequired()
Deprecated.Description copied from interface:SpanProcessor
Returnstrue
if thisSpanProcessor
requires end events.- Specified by:
isEndRequired
in interfaceSpanProcessor
- Returns:
true
if thisSpanProcessor
requires end events.
-
shutdown
public io.opentelemetry.sdk.common.CompletableResultCode shutdown()
Deprecated.Description copied from interface:SpanProcessor
Processes all span events that have not yet been processed and closes used resources.- Specified by:
shutdown
in interfaceSpanProcessor
- Returns:
- a
CompletableResultCode
which completes when shutdown is finished.
-
forceFlush
public io.opentelemetry.sdk.common.CompletableResultCode forceFlush()
Deprecated.Description copied from interface:SpanProcessor
Processes all span events that have not yet been processed.- Specified by:
forceFlush
in interfaceSpanProcessor
- Returns:
- a
CompletableResultCode
which completes when currently queued spans are finished processing.
-
-