Record Class TraceSummary
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.tracing.query.TraceSummary
- Record Components:
traceId- trace idrootServiceName- service of the root span, if knownrootName- name of the root span, if knownstartMicros- earliest span startdurationMicros- trace durationspanCount- number of spans
public record TraceSummary(String traceId, Optional<String> rootServiceName, Optional<String> rootName, long startMicros, long durationMicros, int spanCount)
extends Record
Search result entry.
-
Constructor Summary
ConstructorsConstructorDescriptionTraceSummary(String traceId, String rootServiceName, String rootName, long startMicros, long durationMicros, int spanCount) Creates a summary from nullable values.TraceSummary(String traceId, Optional<String> rootServiceName, Optional<String> rootName, long startMicros, long durationMicros, int spanCount) Normalises the id and optionals. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationMicrosrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rootName()Returns the value of therootNamerecord component.Returns the value of therootServiceNamerecord component.intReturns the value of thespanCountrecord component.longReturns the value of thestartMicrosrecord component.final StringtoString()Returns a string representation of this record class.traceId()Returns the value of thetraceIdrecord component.
-
Constructor Details
-
TraceSummary
public TraceSummary(String traceId, Optional<String> rootServiceName, Optional<String> rootName, long startMicros, long durationMicros, int spanCount) Normalises the id and optionals.- Parameters:
traceId- trace idrootServiceName- root servicerootName- root namestartMicros- startdurationMicros- durationspanCount- span count
-
TraceSummary
public TraceSummary(String traceId, String rootServiceName, String rootName, long startMicros, long durationMicros, int spanCount) Creates a summary from nullable values.- Parameters:
traceId- trace idrootServiceName- root service ornullrootName- root name ornullstartMicros- startdurationMicros- durationspanCount- span count
-
-
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 '=='. -
traceId
Returns the value of thetraceIdrecord component.- Returns:
- the value of the
traceIdrecord component
-
rootServiceName
Returns the value of therootServiceNamerecord component.- Returns:
- the value of the
rootServiceNamerecord component
-
rootName
Returns the value of therootNamerecord component.- Returns:
- the value of the
rootNamerecord component
-
startMicros
public long startMicros()Returns the value of thestartMicrosrecord component.- Returns:
- the value of the
startMicrosrecord component
-
durationMicros
public long durationMicros()Returns the value of thedurationMicrosrecord component.- Returns:
- the value of the
durationMicrosrecord component
-
spanCount
public int spanCount()Returns the value of thespanCountrecord component.- Returns:
- the value of the
spanCountrecord component
-