Class HttpClientResend
java.lang.Object
io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientResend
A helper that keeps track of the count of the HTTP request resend attempts.
-
Method Summary
Modifier and TypeMethodDescriptionstatic io.opentelemetry.context.Contextinitialize(io.opentelemetry.context.Context context) Initializes the HTTP request resend counter.
-
Method Details
-
initialize
public static io.opentelemetry.context.Context initialize(io.opentelemetry.context.Context context) Initializes the HTTP request resend counter.Note that this must be called on a
contextthat is the parent of all the outgoing HTTP request send attempts; this class is meant to be used before theInstrumenteris used, so that the resend counter is shared across all the resends.
-