Module org.mule.sdk.api
Package org.mule.sdk.api.runtime.source
Interface DistributedTraceContextManager
This is a manager for handling distributed tracing for sources/operations.
- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddCurrentSpanAttribute(String key, String value) Adds an attribute to the current span.voidaddCurrentSpanAttributes(Map<String, String> attributes) Adds all the attributes passed as parameters to the span.voidsetCurrentSpanName(String name) Sets the current span name.voidsetRemoteTraceContextMap(Map<String, String> contextMap)
-
Method Details
-
setRemoteTraceContextMap
- Parameters:
contextMap- the string/string key/value that stores the information of the remote trace context.
-
getRemoteTraceContextMap
- Returns:
- the context map corresponding to the remote trace context.
-
setCurrentSpanName
Sets the current span name. -
addCurrentSpanAttribute
Adds an attribute to the current span.- Parameters:
key- the key for the span attributevalue- the value for the span attribute
-
addCurrentSpanAttributes
Adds all the attributes passed as parameters to the span.- Parameters:
attributes- the attributes to add.
-