Class WssSpanEnricher

java.lang.Object
com.mulesoft.modules.wss.internal.telemetry.WssSpanEnricher

public final class WssSpanEnricher extends Object
Helper that enriches the current OTel span for WSS operations with WSS-specific details (direction, SOAP version, enabled features, etc.) using the Mule SDK DistributedTraceContextManager. All calls are best-effort: any classpath or linkage issues are swallowed and logged at DEBUG so that span enrichment can never break WSS processing.
  • Field Details

  • Method Details

    • appendIfPresent

      public static void appendIfPresent(StringBuilder sb, Object value, String code)
      Appends code to sb, prefixed by a comma if sb is non-empty, when value is not null. Centralizes the conditional-CSV-append pattern used to build telemetry label strings from a set of enabled feature configs.
    • enrich

      public static void enrich(org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceManager, String spanName, String... attributes)