Interface HttpClientExperimentalAttributesGetter<REQUEST,RESPONSE>

All Superinterfaces:
io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<REQUEST,RESPONSE>, io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<REQUEST,RESPONSE>, io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<REQUEST,RESPONSE>, io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<REQUEST>

public interface HttpClientExperimentalAttributesGetter<REQUEST,RESPONSE> extends io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<REQUEST,RESPONSE>
An interface for getting experimental HTTP client attributes.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the template used by the http client framework to build the request URL.

    Methods inherited from interface io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter

    getServerAddress, getServerPort, getUrlFull

    Methods inherited from interface io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter

    getErrorType, getHttpRequestHeader, getHttpRequestMethod, getHttpResponseHeader, getHttpResponseStatusCode

    Methods inherited from interface io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter

    getNetworkLocalAddress, getNetworkLocalInetSocketAddress, getNetworkLocalPort, getNetworkPeerAddress, getNetworkPeerInetSocketAddress, getNetworkPeerPort, getNetworkProtocolName, getNetworkProtocolVersion, getNetworkTransport, getNetworkType
  • Method Details

    • getUrlTemplate

      @Nullable String getUrlTemplate(REQUEST request)
      Returns the template used by the http client framework to build the request URL.

      Examples: /users/:userID?, {controller}/{action}/{id?}