Class InboundSpanCustomizer
java.lang.Object
com.mulesoft.connectors.mcp.internal.tracing.SpanCustomizer
com.mulesoft.connectors.mcp.internal.tracing.InboundSpanCustomizer
A customizer for the current span for HTTP Requests
- Since:
- 1.2.0
-
Field Summary
Fields inherited from class com.mulesoft.connectors.mcp.internal.tracing.SpanCustomizer
HTTP_FLAVOR, HTTP_METHOD, SPAN_KIND, traceContextManager -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
InboundSpanCustomizer
-
-
Method Details
-
customizeSpan
public void customizeSpan()Description copied from class:SpanCustomizerCustomize the current span- Overrides:
customizeSpanin classSpanCustomizer
-
getProtocol
- Specified by:
getProtocolin classSpanCustomizer- Returns:
- whether this is HTTP or HTTPS.
-
getMethod
- Specified by:
getMethodin classSpanCustomizer- Returns:
- the method for the http span.
-
getFlavor
- Specified by:
getFlavorin classSpanCustomizer- Returns:
- the http flavor.
-
getURI
- Specified by:
getURIin classSpanCustomizer- Returns:
- the
URI - Throws:
URISyntaxException
-
getSpanKind
- Specified by:
getSpanKindin classSpanCustomizer- Returns:
- the span kind
-