Interface DistributedTraceContextManager


@MinMuleVersion("4.5") public interface DistributedTraceContextManager
This is a manager for handling distributed tracing for sources/operations.
Since:
1.0
  • Method Details

    • setRemoteTraceContextMap

      void setRemoteTraceContextMap(Map<String,String> contextMap)
      Parameters:
      contextMap - the string/string key/value that stores the information of the remote trace context.
    • getRemoteTraceContextMap

      Map<String,String> getRemoteTraceContextMap()
      Returns:
      the context map corresponding to the remote trace context.
    • setCurrentSpanName

      void setCurrentSpanName(String name)
      Sets the current span name.
    • addCurrentSpanAttribute

      void addCurrentSpanAttribute(String key, String value)
      Adds an attribute to the current span.
      Parameters:
      key - the key for the span attribute
      value - the value for the span attribute
    • addCurrentSpanAttributes

      void addCurrentSpanAttributes(Map<String,String> attributes)
      Adds all the attributes passed as parameters to the span.
      Parameters:
      attributes - the attributes to add.