java.lang.Object
io.opentelemetry.instrumentation.api.instrumenter.http.HttpClientResend

public final class HttpClientResend extends Object
A helper that keeps track of the count of the HTTP request resend attempts.
  • 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 context that is the parent of all the outgoing HTTP request send attempts; this class is meant to be used before the Instrumenter is used, so that the resend counter is shared across all the resends.