Class KafkaSpanDecorator
java.lang.Object
org.apache.camel.tracing.decorators.AbstractSpanDecorator
org.apache.camel.tracing.decorators.AbstractMessagingSpanDecorator
org.apache.camel.tracing.decorators.KafkaSpanDecorator
- All Implemented Interfaces:
SpanDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringConstants copied frominvalid reference
org.apache.camel.component.kafka.KafkaConstantsFields inherited from class org.apache.camel.tracing.decorators.AbstractMessagingSpanDecorator
MESSAGE_BUS_IDFields inherited from interface org.apache.camel.tracing.SpanDecorator
CAMEL_COMPONENT, DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe camel component name associated with the decorator.The camel component FQN classname associated with the decorator.getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) This method identifies the destination from the supplied exchange and/or endpoint.voidpre(SpanAdapter span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) This method adds appropriate details (tags/logs) to the supplied span based on the pre processing of the exchange.Methods inherited from class org.apache.camel.tracing.decorators.AbstractMessagingSpanDecorator
getExtractAdapter, getInitiatorSpanKind, getInjectAdapter, getMessageId, getOperationName, getReceiverSpanKindMethods inherited from class org.apache.camel.tracing.decorators.AbstractSpanDecorator
newSpan, post, stripSchemeAndOptions, toQueryParameters
-
Field Details
-
KAFKA_PARTITION_TAG
- See Also:
-
KAFKA_PARTITION_KEY_TAG
- See Also:
-
KAFKA_KEY_TAG
- See Also:
-
KAFKA_OFFSET_TAG
- See Also:
-
PARTITION_KEY
Constants copied frominvalid reference
org.apache.camel.component.kafka.KafkaConstants- See Also:
-
PARTITION
- See Also:
-
KEY
- See Also:
-
OVERRIDE_TOPIC
- See Also:
-
OFFSET
- See Also:
-
-
Constructor Details
-
KafkaSpanDecorator
public KafkaSpanDecorator()
-
-
Method Details
-
getComponent
Description copied from interface:SpanDecoratorThe camel component name associated with the decorator.- Returns:
- The camel component name
-
getComponentClassName
Description copied from interface:SpanDecoratorThe camel component FQN classname associated with the decorator.- Returns:
- The camel component FQN classname
-
getDestination
public String getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) Description copied from class:AbstractMessagingSpanDecoratorThis method identifies the destination from the supplied exchange and/or endpoint.- Overrides:
getDestinationin classAbstractMessagingSpanDecorator- Parameters:
exchange- The exchangeendpoint- The endpoint- Returns:
- The message bus destination
-
pre
public void pre(SpanAdapter span, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) Description copied from interface:SpanDecoratorThis method adds appropriate details (tags/logs) to the supplied span based on the pre processing of the exchange.- Specified by:
prein interfaceSpanDecorator- Overrides:
prein classAbstractMessagingSpanDecorator- Parameters:
span- The spanexchange- The exchangeendpoint- The endpoint
-