Package dev.dokimos.server.service
Record Class OtlpTraceParser.ParsedSpan
java.lang.Object
java.lang.Record
dev.dokimos.server.service.OtlpTraceParser.ParsedSpan
- Enclosing class:
OtlpTraceParser
public static record OtlpTraceParser.ParsedSpan(String traceId, String spanId, String parentSpanId, String name, String kind, String statusCode, Long startTimeUnixNano, Long endTimeUnixNano, Map<String,Object> attributes, String inputText, String outputText, String projectName)
extends Record
A span translated from OTLP, carrying the merged attributes and derived input/output text.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedSpan(String traceId, String spanId, String parentSpanId, String name, String kind, String statusCode, Long startTimeUnixNano, Long endTimeUnixNano, Map<String, Object> attributes, String inputText, String outputText, String projectName) Creates an instance of aParsedSpanrecord class. -
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.final inthashCode()Returns a hash code value for this object.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.Returns the value of theprojectNamerecord 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.traceId()Returns the value of thetraceIdrecord component.
-
Constructor Details
-
ParsedSpan
public ParsedSpan(String traceId, String spanId, String parentSpanId, String name, String kind, String statusCode, Long startTimeUnixNano, Long endTimeUnixNano, Map<String, Object> attributes, String inputText, String outputText, String projectName) Creates an instance of aParsedSpanrecord class.- Parameters:
traceId- the value for thetraceIdrecord 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 componentattributes- the value for theattributesrecord componentinputText- the value for theinputTextrecord componentoutputText- the value for theoutputTextrecord componentprojectName- the value for theprojectNamerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
traceId
Returns the value of thetraceIdrecord component.- Returns:
- the value of the
traceIdrecord 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
-
attributes
Returns the value of theattributesrecord component.- Returns:
- the value of the
attributesrecord 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
-
projectName
Returns the value of theprojectNamerecord component.- Returns:
- the value of the
projectNamerecord component
-