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 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 a TraceDetail record class.
      Parameters:
      id - the value for the id record component
      traceId - the value for the traceId record component
      projectId - the value for the projectId record component
      tenantId - the value for the tenantId record component
      rootSpanName - the value for the rootSpanName record component
      spanCount - the value for the spanCount record component
      startTimeUnixNano - the value for the startTimeUnixNano record component
      endTimeUnixNano - the value for the endTimeUnixNano record component
      createdAt - the value for the createdAt record component
      expiresAt - the value for the expiresAt record component
      spans - the value for the spans record component
      evalJobs - the value for the evalJobs record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public UUID id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • traceId

      public String traceId()
      Returns the value of the traceId record component.
      Returns:
      the value of the traceId record component
    • projectId

      public UUID projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • tenantId

      public String tenantId()
      Returns the value of the tenantId record component.
      Returns:
      the value of the tenantId record component
    • rootSpanName

      public String rootSpanName()
      Returns the value of the rootSpanName record component.
      Returns:
      the value of the rootSpanName record component
    • spanCount

      public int spanCount()
      Returns the value of the spanCount record component.
      Returns:
      the value of the spanCount record component
    • startTimeUnixNano

      public Long startTimeUnixNano()
      Returns the value of the startTimeUnixNano record component.
      Returns:
      the value of the startTimeUnixNano record component
    • endTimeUnixNano

      public Long endTimeUnixNano()
      Returns the value of the endTimeUnixNano record component.
      Returns:
      the value of the endTimeUnixNano record component
    • createdAt

      public Instant createdAt()
      Returns the value of the createdAt record component.
      Returns:
      the value of the createdAt record component
    • expiresAt

      public Instant expiresAt()
      Returns the value of the expiresAt record component.
      Returns:
      the value of the expiresAt record component
    • spans

      public List<SpanView> spans()
      Returns the value of the spans record component.
      Returns:
      the value of the spans record component
    • evalJobs

      public List<TraceEvalJobView> evalJobs()
      Returns the value of the evalJobs record component.
      Returns:
      the value of the evalJobs record component