Class NsqSpanDecorator
- java.lang.Object
-
- org.apache.camel.tracing.decorators.AbstractSpanDecorator
-
- org.apache.camel.tracing.decorators.AbstractMessagingSpanDecorator
-
- org.apache.camel.tracing.decorators.NsqSpanDecorator
-
- All Implemented Interfaces:
SpanDecorator
public class NsqSpanDecorator extends AbstractMessagingSpanDecorator
-
-
Field Summary
Fields Modifier and Type Field Description static StringNSQ_MESSAGE_IDstatic StringNSQ_TOPIC-
Fields inherited from class org.apache.camel.tracing.decorators.AbstractMessagingSpanDecorator
MESSAGE_BUS_ID
-
Fields inherited from interface org.apache.camel.tracing.SpanDecorator
CAMEL_COMPONENT, DEFAULT
-
-
Constructor Summary
Constructors Constructor Description NsqSpanDecorator()
-
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.StringgetDestination(org.apache.camel.Exchange exchange, org.apache.camel.Endpoint endpoint)This method identifies the destination from the supplied exchange and/or endpoint.protected StringgetMessageId(org.apache.camel.Exchange exchange)This method identifies the message id for the messaging exchange.-
Methods inherited from class org.apache.camel.tracing.decorators.AbstractMessagingSpanDecorator
getExtractAdapter, getInitiatorSpanKind, getInjectAdapter, getOperationName, getReceiverSpanKind, pre
-
Methods inherited from class org.apache.camel.tracing.decorators.AbstractSpanDecorator
newSpan, post, stripSchemeAndOptions, toQueryParameters
-
-
-
-
Field Detail
-
NSQ_MESSAGE_ID
public static final String NSQ_MESSAGE_ID
- See Also:
- Constant Field Values
-
NSQ_TOPIC
public static final String NSQ_TOPIC
- See Also:
- Constant Field Values
-
-
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
-
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
-
getMessageId
protected String getMessageId(org.apache.camel.Exchange exchange)
Description copied from class:AbstractMessagingSpanDecoratorThis method identifies the message id for the messaging exchange.- Overrides:
getMessageIdin classAbstractMessagingSpanDecorator- Returns:
- The message id, or null if no id exists for the exchange
-
-