Class SpanCustomizer
java.lang.Object
com.mulesoft.connectors.a2a.internal.tracing.SpanCustomizer
- Direct Known Subclasses:
InboundSpanCustomizer,OutboundSpanCustomizer
A customizer for the current span for HTTP
- Since:
- 0.3.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSpanCustomizer(org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager) -
Method Summary
-
Field Details
-
HTTP_METHOD
- See Also:
-
HTTP_FLAVOR
- See Also:
-
SPAN_KIND
- See Also:
-
traceContextManager
protected final org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager
-
-
Constructor Details
-
SpanCustomizer
public SpanCustomizer(org.mule.sdk.api.runtime.source.DistributedTraceContextManager traceContextManager)
-
-
Method Details
-
customizeSpan
public void customizeSpan()Customize the current span -
getProtocol
- Returns:
- whether this is HTTP or HTTPS.
-
getMethod
- Returns:
- the method for the http span.
-
getFlavor
- Returns:
- the http flavor.
-
getURI
- Returns:
- the
URI - Throws:
URISyntaxException
-
getSpanKind
- Returns:
- the span kind
-