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
-
Field Summary
FieldsFields 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 -
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.protected String
getMessageId
(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 Details
-
NSQ_MESSAGE_ID
- See Also:
-
NSQ_TOPIC
- See Also:
-
-
Constructor Details
-
NsqSpanDecorator
public NsqSpanDecorator()
-
-
Method Details
-
getComponent
Description copied from interface:SpanDecorator
The camel component name associated with the decorator.- Returns:
- The camel component name
-
getComponentClassName
Description copied from interface:SpanDecorator
The 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:AbstractMessagingSpanDecorator
This method identifies the destination from the supplied exchange and/or endpoint.- Overrides:
getDestination
in classAbstractMessagingSpanDecorator
- Parameters:
exchange
- The exchangeendpoint
- The endpoint- Returns:
- The message bus destination
-
getMessageId
Description copied from class:AbstractMessagingSpanDecorator
This method identifies the message id for the messaging exchange.- Overrides:
getMessageId
in classAbstractMessagingSpanDecorator
- Returns:
- The message id, or null if no id exists for the exchange
-