Class SpanCustomizer

java.lang.Object
com.mulesoft.connectors.mcp.internal.tracing.SpanCustomizer
Direct Known Subclasses:
InboundSpanCustomizer, OutboundSpanCustomizer

public abstract class SpanCustomizer extends Object
A customizer for the current span for HTTP
Since:
1.2.0
  • Field Details

  • Constructor Details

    • SpanCustomizer

      public SpanCustomizer(org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager)
  • Method Details

    • customizeSpan

      public void customizeSpan()
      Customize the current span
    • getProtocol

      public abstract String getProtocol()
      Returns:
      whether this is HTTP or HTTPS.
    • getMethod

      public abstract String getMethod()
      Returns:
      the method for the http span.
    • getFlavor

      public abstract String getFlavor()
      Returns:
      the http flavor.
    • getURI

      public abstract URI getURI() throws URISyntaxException
      Returns:
      the URI
      Throws:
      URISyntaxException
    • getSpanKind

      protected abstract String getSpanKind()
      Returns:
      the span kind