Class WebClientHttpAttributesGetter

java.lang.Object
io.opentelemetry.instrumentation.spring.webflux.v5_3.internal.WebClientHttpAttributesGetter
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>, io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>, io.opentelemetry.instrumentation.api.semconv.network.NetworkAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>, io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest>

public class WebClientHttpAttributesGetter extends Object implements io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getErrorType(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ClientResponse response, Throwable error)
     
    getHttpRequestHeader(org.springframework.web.reactive.function.client.ClientRequest request, String name)
     
    getHttpRequestMethod(org.springframework.web.reactive.function.client.ClientRequest request)
     
    getHttpResponseHeader(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ClientResponse response, String name)
     
    getHttpResponseStatusCode(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ClientResponse response, Throwable error)
     
    getServerAddress(org.springframework.web.reactive.function.client.ClientRequest request)
     
    getServerPort(org.springframework.web.reactive.function.client.ClientRequest request)
     
    getUrlFull(org.springframework.web.reactive.function.client.ClientRequest request)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

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

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

    • WebClientHttpAttributesGetter

      public WebClientHttpAttributesGetter()
  • Method Details

    • getUrlFull

      public String getUrlFull(org.springframework.web.reactive.function.client.ClientRequest request)
      Specified by:
      getUrlFull in interface io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>
    • getHttpRequestMethod

      public String getHttpRequestMethod(org.springframework.web.reactive.function.client.ClientRequest request)
      Specified by:
      getHttpRequestMethod in interface io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>
    • getHttpRequestHeader

      public List<String> getHttpRequestHeader(org.springframework.web.reactive.function.client.ClientRequest request, String name)
      Specified by:
      getHttpRequestHeader in interface io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>
    • getHttpResponseStatusCode

      @Nullable public Integer getHttpResponseStatusCode(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ClientResponse response, @Nullable Throwable error)
      Specified by:
      getHttpResponseStatusCode in interface io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>
    • getHttpResponseHeader

      public List<String> getHttpResponseHeader(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ClientResponse response, String name)
      Specified by:
      getHttpResponseHeader in interface io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>
    • getServerAddress

      @Nullable public String getServerAddress(org.springframework.web.reactive.function.client.ClientRequest request)
      Specified by:
      getServerAddress in interface io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>
      Specified by:
      getServerAddress in interface io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest>
    • getServerPort

      @Nullable public Integer getServerPort(org.springframework.web.reactive.function.client.ClientRequest request)
      Specified by:
      getServerPort in interface io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>
      Specified by:
      getServerPort in interface io.opentelemetry.instrumentation.api.semconv.network.ServerAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest>
    • getErrorType

      @Nullable public String getErrorType(org.springframework.web.reactive.function.client.ClientRequest request, @Nullable org.springframework.web.reactive.function.client.ClientResponse response, @Nullable Throwable error)
      Specified by:
      getErrorType in interface io.opentelemetry.instrumentation.api.semconv.http.HttpCommonAttributesGetter<org.springframework.web.reactive.function.client.ClientRequest,org.springframework.web.reactive.function.client.ClientResponse>