Class KafkaSegmentDecorator
java.lang.Object
org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
org.apache.camel.component.aws.xray.decorators.messaging.AbstractMessagingSegmentDecorator
org.apache.camel.component.aws.xray.decorators.messaging.KafkaSegmentDecorator
- All Implemented Interfaces:
SegmentDecorator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringConstants copied frominvalid reference
org.apache.camel.component.kafka.KafkaConstantsprotected static final StringFields inherited from class org.apache.camel.component.aws.xray.decorators.messaging.AbstractMessagingSegmentDecorator
MESSAGE_BUS_IDFields inherited from interface org.apache.camel.component.aws.xray.SegmentDecorator
CAMEL_COMPONENT, DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe camel component associated with the decorator.getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) Gets the (component-specific) destinationvoidpre(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) This method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.Methods inherited from class org.apache.camel.component.aws.xray.decorators.messaging.AbstractMessagingSegmentDecorator
getMessageId, getOperationNameMethods inherited from class org.apache.camel.component.aws.xray.decorators.AbstractSegmentDecorator
newSegment, 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:
-
TOPIC
- See Also:
-
OFFSET
- See Also:
-
-
Constructor Details
-
KafkaSegmentDecorator
public KafkaSegmentDecorator()
-
-
Method Details
-
getComponent
Description copied from interface:SegmentDecoratorThe camel component associated with the decorator.- Returns:
- The camel component name
-
getDestination
public String getDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) Description copied from class:AbstractMessagingSegmentDecoratorGets the (component-specific) destination- Overrides:
getDestinationin classAbstractMessagingSegmentDecorator- Parameters:
exchange- the exchange to extract the destination info fromendpoint- the endpoint being used- Returns:
- A String with the destination
-
pre
public void pre(com.amazonaws.xray.entities.Entity segment, org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint) Description copied from interface:SegmentDecoratorThis method adds appropriate details (tags/logs) to the supplied segment based on the pre processing of the exchange.- Specified by:
prein interfaceSegmentDecorator- Overrides:
prein classAbstractMessagingSegmentDecorator- Parameters:
segment- The segmentexchange- The exchangeendpoint- The endpoint
-