Package codes.grow.packages.datadogapm
Record Class DatadogIds.DatadogTraceId
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.DatadogIds.DatadogTraceId
- Record Components:
low64Decimal- low 64 bits as an unsigned decimal (x-datadog-trace-id, the Agent'strace_id)high64Hex- high 64 bits as 16 lower-case hex characters (_dd.p.tid); all zeros for a 64-bit idis128Bit- true when the high 64 bits are not zero (the id needs_dd.p.tid)
- Enclosing class:
DatadogIds
public static record DatadogIds.DatadogTraceId(String low64Decimal, String high64Hex, boolean is128Bit)
extends Record
A trace id split the way Datadog stores it.
-
Constructor Summary
ConstructorsConstructorDescriptionDatadogTraceId(String low64Decimal, String high64Hex, boolean is128Bit) Creates an instance of aDatadogTraceIdrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehigh64Hexrecord component.booleanis128Bit()Returns the value of theis128Bitrecord component.Returns the value of thelow64Decimalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DatadogTraceId
Creates an instance of aDatadogTraceIdrecord class.- Parameters:
low64Decimal- the value for thelow64Decimalrecord componenthigh64Hex- the value for thehigh64Hexrecord componentis128Bit- the value for theis128Bitrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
low64Decimal
Returns the value of thelow64Decimalrecord component.- Returns:
- the value of the
low64Decimalrecord component
-
high64Hex
Returns the value of thehigh64Hexrecord component.- Returns:
- the value of the
high64Hexrecord component
-
is128Bit
public boolean is128Bit()Returns the value of theis128Bitrecord component.- Returns:
- the value of the
is128Bitrecord component
-