Package dev.dokimos.server.dto.v1
Record Class SpanView
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.SpanView
public record SpanView(UUID id, String spanId, String parentSpanId, String name, String kind, String statusCode, Long startTimeUnixNano, Long endTimeUnixNano, String inputText, String outputText, Map<String,Object> attributes)
extends Record
Public view of a
TraceSpan, including its derived input/output text and flattened attributes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theattributesrecord component.Returns the value of theendTimeUnixNanorecord component.final booleanIndicates whether some other object is "equal to" this one.static SpanViewfinal inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theinputTextrecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.Returns the value of theoutputTextrecord component.Returns the value of theparentSpanIdrecord component.spanId()Returns the value of thespanIdrecord component.Returns the value of thestartTimeUnixNanorecord component.Returns the value of thestatusCoderecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpanView
public SpanView(UUID id, String spanId, String parentSpanId, String name, String kind, String statusCode, Long startTimeUnixNano, Long endTimeUnixNano, String inputText, String outputText, Map<String, Object> attributes) Creates an instance of aSpanViewrecord class.- Parameters:
id- the value for theidrecord componentspanId- the value for thespanIdrecord componentparentSpanId- the value for theparentSpanIdrecord componentname- the value for thenamerecord componentkind- the value for thekindrecord componentstatusCode- the value for thestatusCoderecord componentstartTimeUnixNano- the value for thestartTimeUnixNanorecord componentendTimeUnixNano- the value for theendTimeUnixNanorecord componentinputText- the value for theinputTextrecord componentoutputText- the value for theoutputTextrecord componentattributes- the value for theattributesrecord component
-
-
Method Details
-
from
-
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
-
spanId
Returns the value of thespanIdrecord component.- Returns:
- the value of the
spanIdrecord component
-
parentSpanId
Returns the value of theparentSpanIdrecord component.- Returns:
- the value of the
parentSpanIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
statusCode
Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-
startTimeUnixNano
Returns the value of thestartTimeUnixNanorecord component.- Returns:
- the value of the
startTimeUnixNanorecord component
-
endTimeUnixNano
Returns the value of theendTimeUnixNanorecord component.- Returns:
- the value of the
endTimeUnixNanorecord component
-
inputText
Returns the value of theinputTextrecord component.- Returns:
- the value of the
inputTextrecord component
-
outputText
Returns the value of theoutputTextrecord component.- Returns:
- the value of the
outputTextrecord component
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord component
-