Interface HttpClientAttributesGetter<REQUEST,RESPONSE>

All Superinterfaces:
HttpCommonAttributesGetter<REQUEST,RESPONSE>

public interface HttpClientAttributesGetter<REQUEST,RESPONSE> extends HttpCommonAttributesGetter<REQUEST,RESPONSE>
An interface for getting HTTP client attributes.

Instrumentation authors will create implementations of this interface for their specific library/framework. It will be used by the HttpClientAttributesExtractor to obtain the various HTTP client attributes in a type-generic way.

  • Method Details

    • getUrlFull

      @Nullable String getUrlFull(REQUEST request)
      Returns the absolute URL describing a network resource according to RFC3986.

      Examples: https://www.foo.bar/search?q=OpenTelemetry#SemConv; //localhost