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 StringgetComponent()The camel component name associated with the decorator.StringgetComponentClassName()The camel component FQN classname associated with the decorator.booleannewSpan()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:SpanDecoratorThe camel component name associated with the decorator.- Returns:
- The camel component name
-
getComponentClassName
public String getComponentClassName()
Description copied from interface:SpanDecoratorThe camel component FQN classname associated with the decorator.- Returns:
- The camel component FQN classname
-
newSpan
public boolean newSpan()
Description copied from interface:SpanDecoratorThis method indicates whether the component associated with the SpanDecorator should result in a new span being created.- Specified by:
newSpanin interfaceSpanDecorator- Overrides:
newSpanin classAbstractSpanDecorator- Returns:
- Whether a new span should be created
-
-