Class TracingUtils

java.lang.Object
com.mulesoft.connectors.a2a.internal.tracing.TracingUtils

public class TracingUtils extends Object
Utils for Otel tracing
Since:
0.3.0
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder
    propagateTraceContext(org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder builder, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager)
     
    static void
    traceOutboundRequest(org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.http.api.domain.message.request.HttpRequest request)
     
    static void
    traceResponseStatusCode(org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, int statusCode, org.slf4j.Logger logger)
    Adds the status code attribute.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • traceResponseStatusCode

      public static void traceResponseStatusCode(org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, int statusCode, org.slf4j.Logger logger)
      Adds the status code attribute.
      Parameters:
      traceContextManager - the DistributedTraceContextManager to use.
      statusCode - the status code.
      logger - the LOGGER to use.
    • traceOutboundRequest

      public static void traceOutboundRequest(org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager, org.mule.runtime.http.api.domain.message.request.HttpRequest request)
    • propagateTraceContext

      public static org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder propagateTraceContext(org.mule.runtime.http.api.domain.message.request.HttpRequestBuilder builder, org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager)