Package codes.grow.packages.datadogapm
Record Class DatadogSpan
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.DatadogSpan
- Record Components:
id- Datadog event id of the spanspan- the span in the SPEC section 5 model (ids normalized to hex)raw- the attributes exactly as Datadog returned them
public record DatadogSpan(String id, Span span, com.fasterxml.jackson.databind.JsonNode raw)
extends Record
One span returned by the spans search API.
-
Constructor Summary
ConstructorsConstructorDescriptionDatadogSpan(String id, Span span, com.fasterxml.jackson.databind.JsonNode raw) Creates an instance of aDatadogSpanrecord 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.id()Returns the value of theidrecord component.com.fasterxml.jackson.databind.JsonNoderaw()Returns the value of therawrecord component.span()Returns the value of thespanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
span
Returns the value of thespanrecord component.- Returns:
- the value of the
spanrecord component
-
raw
public com.fasterxml.jackson.databind.JsonNode raw()Returns the value of therawrecord component.- Returns:
- the value of the
rawrecord component
-