java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.http.HttpClientUrlTemplate

public final class HttpClientUrlTemplate extends Object
A helper class for setting url.template attribute value for HTTP client calls.
  • Method Details

    • with

      public static io.opentelemetry.context.Scope with(io.opentelemetry.context.Context context, String urlTemplate)
      Add url template to context and make the new context current. Http client calls made while the context is active will set url.template attribute to the supplied value.
    • get

      @Nullable public static String get(io.opentelemetry.context.Context context)