Package codes.grow.packages.tempo
Record Class SearchSpan
java.lang.Object
java.lang.Record
codes.grow.packages.tempo.SearchSpan
- Record Components:
spanId- 16 lower-case hex charactersname- span name, when selectedstartMicros- start time in microseconds since the Unix epochdurationMicros- duration in microsecondsattributes- attribute values
public record SearchSpan(String spanId, Optional<String> name, long startMicros, long durationMicros, Map<String,Object> attributes)
extends Record
One span of a search spanset.
name is present only when the query selects it (|
select(name)); attributes always hold service.name plus the selected attributes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.longReturns 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.name()Returns the value of thenamerecord component.spanId()Returns the value of thespanIdrecord component.longReturns the value of thestartMicrosrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
spanId
Returns the value of thespanIdrecord component.- Returns:
- the value of the
spanIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord 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
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-