Interface TracingMessage
- All Superinterfaces:
Message
- All Known Implementing Classes:
DefaultMessage
This interface defines a
Message compatible with tracing- Author:
- Guillaume LAMIRAND (guillaume.lamirand at graviteesource.com), GraviteeSource Team
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddTracingAttribute(String key, String value) Allow to add extra tracing attribute used to trace this messageBehavior to apply when the underlying span will be ended.voidend()Run the end behavior defined bydoOnEnd(Runnable)default voidinjectSpanContext(BaseExecutionContext executionContext, BiConsumer<String, String> textMapSetter) Allow to inject message context into the given carrierdefault booleanReturn tracing attributes based on Semantic Conventions for MessagingMethods inherited from interface io.gravitee.gateway.reactive.api.message.Message
ack, attribute, attribute, attributeAsList, attributeNames, attributes, content, content, content, correlationId, error, error, headers, headers, id, internalAttribute, internalAttribute, internalAttributeNames, internalAttributes, metadata, parentCorrelationId, removeAttribute, removeInternalAttribute, timestamp
-
Method Details
-
isTraceable
default boolean isTraceable() -
doOnEnd
Behavior to apply when the underlying span will be ended.- Parameters:
runnable-
-
end
void end()Run the end behavior defined bydoOnEnd(Runnable) -
tracingAttributes
Return tracing attributes based on Semantic Conventions for Messaging- Returns:
- map of tracing attributes
-
addTracingAttribute
Allow to add extra tracing attribute used to trace this message- Parameters:
key- the key of the span attributevalue- the value associated
-
injectSpanContext
default void injectSpanContext(BaseExecutionContext executionContext, BiConsumer<String, String> textMapSetter) Allow to inject message context into the given carrier- Parameters:
executionContext- the current execution contexttextMapSetter- the map setter to use
-