Enum WebClientHttpAttributesGetter

java.lang.Object
java.lang.Enum<WebClientHttpAttributesGetter>
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>, Serializable, Comparable<WebClientHttpAttributesGetter>, java.lang.constant.Constable

public enum WebClientHttpAttributesGetter extends Enum<WebClientHttpAttributesGetter> 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.
  • Enum Constant Details

  • Method Details

    • values

      public static WebClientHttpAttributesGetter[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static WebClientHttpAttributesGetter valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • 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

      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>