Package dev.dokimos.server.dto.v1
Record Class TraceDetail
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.TraceDetail
public record TraceDetail(UUID id, String traceId, UUID projectId, String tenantId, String rootSpanName, int spanCount, Long startTimeUnixNano, Long endTimeUnixNano, Instant createdAt, Instant expiresAt, List<SpanView> spans, List<TraceEvalJobView> evalJobs)
extends Record
Full view of one trace: its metadata, all of its spans, and the online eval jobs scoped to those spans.
-
Constructor Summary
ConstructorsConstructorDescriptionTraceDetail(UUID id, String traceId, UUID projectId, String tenantId, String rootSpanName, int spanCount, Long startTimeUnixNano, Long endTimeUnixNano, Instant createdAt, Instant expiresAt, List<SpanView> spans, List<TraceEvalJobView> evalJobs) Creates an instance of aTraceDetailrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedAtrecord component.Returns the value of theendTimeUnixNanorecord component.final booleanIndicates whether some other object is "equal to" this one.evalJobs()Returns the value of theevalJobsrecord component.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theprojectIdrecord component.Returns the value of therootSpanNamerecord component.intReturns the value of thespanCountrecord component.spans()Returns the value of thespansrecord component.Returns the value of thestartTimeUnixNanorecord component.tenantId()Returns the value of thetenantIdrecord component.final StringtoString()Returns a string representation of this record class.traceId()Returns the value of thetraceIdrecord component.
-
Constructor Details
-
TraceDetail
public TraceDetail(UUID id, String traceId, UUID projectId, String tenantId, String rootSpanName, int spanCount, Long startTimeUnixNano, Long endTimeUnixNano, Instant createdAt, Instant expiresAt, List<SpanView> spans, List<TraceEvalJobView> evalJobs) Creates an instance of aTraceDetailrecord class.- Parameters:
id- the value for theidrecord componenttraceId- the value for thetraceIdrecord componentprojectId- the value for theprojectIdrecord componenttenantId- the value for thetenantIdrecord componentrootSpanName- the value for therootSpanNamerecord componentspanCount- the value for thespanCountrecord componentstartTimeUnixNano- the value for thestartTimeUnixNanorecord componentendTimeUnixNano- the value for theendTimeUnixNanorecord componentcreatedAt- the value for thecreatedAtrecord componentexpiresAt- the value for theexpiresAtrecord componentspans- the value for thespansrecord componentevalJobs- the value for theevalJobsrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
traceId
Returns the value of thetraceIdrecord component.- Returns:
- the value of the
traceIdrecord component
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
tenantId
Returns the value of thetenantIdrecord component.- Returns:
- the value of the
tenantIdrecord component
-
rootSpanName
Returns the value of therootSpanNamerecord component.- Returns:
- the value of the
rootSpanNamerecord component
-
spanCount
public int spanCount()Returns the value of thespanCountrecord component.- Returns:
- the value of the
spanCountrecord 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
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
spans
Returns the value of thespansrecord component.- Returns:
- the value of the
spansrecord component
-
evalJobs
Returns the value of theevalJobsrecord component.- Returns:
- the value of the
evalJobsrecord component
-