Package dev.dokimos.server.dto.v1
Record Class TraceIngestResponse
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.TraceIngestResponse
Result of an OTLP ingestion call.
acceptedSpans and rejectedSpans count spans persisted
versus skipped as malformed, and traces counts the distinct traces touched. A batch with some
rejected spans still returns 200: one bad span never fails the whole batch.-
Constructor Summary
ConstructorsConstructorDescriptionTraceIngestResponse(int acceptedSpans, int rejectedSpans, int traces) Creates an instance of aTraceIngestResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theacceptedSpansrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of therejectedSpansrecord component.final StringtoString()Returns a string representation of this record class.inttraces()Returns the value of thetracesrecord component.
-
Constructor Details
-
TraceIngestResponse
public TraceIngestResponse(int acceptedSpans, int rejectedSpans, int traces) Creates an instance of aTraceIngestResponserecord class.- Parameters:
acceptedSpans- the value for theacceptedSpansrecord componentrejectedSpans- the value for therejectedSpansrecord componenttraces- the value for thetracesrecord 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 with '=='. -
acceptedSpans
public int acceptedSpans()Returns the value of theacceptedSpansrecord component.- Returns:
- the value of the
acceptedSpansrecord component
-
rejectedSpans
public int rejectedSpans()Returns the value of therejectedSpansrecord component.- Returns:
- the value of the
rejectedSpansrecord component
-
traces
public int traces()Returns the value of thetracesrecord component.- Returns:
- the value of the
tracesrecord component
-