Class Traceparent
java.lang.Object
io.datarouter.instrumentation.trace.Traceparent
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTraceparent(String traceId) Traceparent(String traceId, String parentId) Traceparent(String traceId, String parentId, String traceFlags) -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringvoidvoidbooleanstatic TraceparentgenerateNew(long createdTimestamp) static TraceparentinthashCode()static Optional<Traceparent>booleanbooleantoString()
-
Field Details
-
TRACE_ID_HEX_SIZE
public static final int TRACE_ID_HEX_SIZE- See Also:
-
PARENT_ID_HEX_SIZE
public static final int PARENT_ID_HEX_SIZE- See Also:
-
version
- See Also:
-
traceId
-
parentId
-
-
Constructor Details
-
Traceparent
-
Traceparent
-
Traceparent
-
-
Method Details
-
generateNew
-
generateNewWithCurrentTimeInNs
-
updateParentId
-
createNewParentId
-
getInstant
-
enableSample
public void enableSample() -
enableLog
public void enableLog() -
shouldSample
public boolean shouldSample() -
shouldLog
public boolean shouldLog() -
toString
-
equals
-
hashCode
public int hashCode() -
parse
-