Package com.boomi.connector.api
Interface Telemetry
-
- All Known Implementing Classes:
SimpleTelemetry
@ContainerProvided public interface Telemetry
Provides access to W3C Trace Context propagation information for the currently active span of a connector step, allowing connectors to correlate outbound calls with the process execution's distributed trace.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetTraceParent()Returns the W3Ctraceparentvalue for the currently active span, ornullif no valid span is active.StringgetTraceState()Returns the W3Ctracestatevalue for the currently active span, ornullif no valid span is active.
-
-
-
Method Detail
-
getTraceParent
String getTraceParent()
Returns the W3Ctraceparentvalue for the currently active span, ornullif no valid span is active.Example usage, setting a single header on an outgoing request:
String traceParent = telemetry.getTraceParent(); if (traceParent != null) { httpRequest.setHeader("traceparent", traceParent); }- Returns:
- the
traceparentvalue for the currently active span, ornullif no valid span is active
-
getTraceState
String getTraceState()
Returns the W3Ctracestatevalue for the currently active span, ornullif no valid span is active.Example usage, setting a single header on an outgoing request:
String traceState = telemetry.getTraceState(); if (traceState != null) { httpRequest.setHeader("tracestate", traceState); }- Returns:
- the
tracestatevalue for the currently active span, ornullif no valid span is active
-
-