Package com.boomi.connector.testutil
Class SimpleTelemetry
- java.lang.Object
-
- com.boomi.connector.testutil.SimpleTelemetry
-
-
Constructor Summary
Constructors Constructor Description SimpleTelemetry()
-
Method Summary
All Methods Instance Methods Concrete 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
public String getTraceParent()
Description copied from interface:TelemetryReturns 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); }- Specified by:
getTraceParentin interfaceTelemetry- Returns:
- the
traceparentvalue for the currently active span, ornullif no valid span is active
-
getTraceState
public String getTraceState()
Description copied from interface:TelemetryReturns 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); }- Specified by:
getTraceStatein interfaceTelemetry- Returns:
- the
tracestatevalue for the currently active span, ornullif no valid span is active
-
-