Class LogSpanDecorator
- java.lang.Object
-
- org.apache.camel.tracing.decorators.AbstractSpanDecorator
-
- org.apache.camel.tracing.decorators.LogSpanDecorator
-
- All Implemented Interfaces:
SpanDecorator
public class LogSpanDecorator extends AbstractSpanDecorator
-
-
Field Summary
-
Fields inherited from interface org.apache.camel.tracing.SpanDecorator
CAMEL_COMPONENT, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description LogSpanDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getComponent()
The camel component name associated with the decorator.String
getComponentClassName()
The camel component FQN classname associated with the decorator.boolean
newSpan()
This method indicates whether the component associated with the SpanDecorator should result in a new span being created.-
Methods inherited from class org.apache.camel.tracing.decorators.AbstractSpanDecorator
getExtractAdapter, getInitiatorSpanKind, getInjectAdapter, getOperationName, getReceiverSpanKind, post, pre, stripSchemeAndOptions, toQueryParameters
-
-
-
-
Method Detail
-
getComponent
public String getComponent()
Description copied from interface:SpanDecorator
The camel component name associated with the decorator.- Returns:
- The camel component name
-
getComponentClassName
public String getComponentClassName()
Description copied from interface:SpanDecorator
The camel component FQN classname associated with the decorator.- Returns:
- The camel component FQN classname
-
newSpan
public boolean newSpan()
Description copied from interface:SpanDecorator
This method indicates whether the component associated with the SpanDecorator should result in a new span being created.- Specified by:
newSpan
in interfaceSpanDecorator
- Overrides:
newSpan
in classAbstractSpanDecorator
- Returns:
- Whether a new span should be created
-
-