Package codes.grow.packages.datadogapm
Record Class DatadogPropagator.TerminatedContext
java.lang.Object
java.lang.Record
codes.grow.packages.datadogapm.DatadogPropagator.TerminatedContext
- Record Components:
spanContext- the W3C span context fromtraceparentwinnerSpanId- span id of the Datadog context that won (the parent of the next span)
- Enclosing class:
DatadogPropagator
public static record DatadogPropagator.TerminatedContext(io.opentelemetry.api.trace.SpanContext spanContext, String winnerSpanId)
extends Record
A W3C context that lost against Datadog headers in
DatadogPropagator.extract(io.opentelemetry.context.Context, C, io.opentelemetry.context.propagation.TextMapGetter<C>).-
Constructor Summary
ConstructorsConstructorDescriptionTerminatedContext(io.opentelemetry.api.trace.SpanContext spanContext, String winnerSpanId) Creates an instance of aTerminatedContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.io.opentelemetry.api.trace.SpanContextReturns the value of thespanContextrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewinnerSpanIdrecord component.
-
Constructor Details
-
TerminatedContext
Creates an instance of aTerminatedContextrecord class.- Parameters:
spanContext- the value for thespanContextrecord componentwinnerSpanId- the value for thewinnerSpanIdrecord 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). -
spanContext
public io.opentelemetry.api.trace.SpanContext spanContext()Returns the value of thespanContextrecord component.- Returns:
- the value of the
spanContextrecord component
-
winnerSpanId
Returns the value of thewinnerSpanIdrecord component.- Returns:
- the value of the
winnerSpanIdrecord component
-