Class DefaultHttpServerAttributesExtractor

java.lang.Object
io.micrometer.tracing.otel.bridge.DefaultHttpServerAttributesExtractor
All Implemented Interfaces:
io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>, io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>, io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>, io.opentelemetry.instrumentation.api.instrumenter.network.ClientAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>, io.opentelemetry.instrumentation.api.instrumenter.network.NetworkAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>, io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>, io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<io.micrometer.tracing.http.HttpServerRequest>

@Deprecated public class DefaultHttpServerAttributesExtractor extends Object implements io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
Deprecated.
scheduled for removal in 1.4.0
Extracts OpenTelemetry http semantic attributes value for server http spans.
Since:
1.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getFlavor(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
    This method was removed from OpenTelemetry.
    getHttpRequestHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, String name)
    Deprecated.
     
    getHttpRequestMethod(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
     
    getHttpResponseHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, String name)
    Deprecated.
     
    getHttpResponseStatusCode(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, Throwable error)
    Deprecated.
     
    getHttpRoute(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
     
    getMethod(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
    This method was removed from OpenTelemetry.
    getRequestHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, String name)
    Deprecated.
    This method was removed from OpenTelemetry.
    getResponseHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, String name)
    Deprecated.
    This method was removed from OpenTelemetry.
    getRoute(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
    This method was removed from OpenTelemetry.
    getScheme(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
    This method was removed from OpenTelemetry.
    getStatusCode(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, Throwable error)
    Deprecated.
    This method was removed from OpenTelemetry.
    getTarget(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
    This method was removed from OpenTelemetry.
    getUrlPath(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
     
    getUrlQuery(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
     
    getUrlScheme(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
    Deprecated.
     

    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.instrumenter.network.ClientAttributesGetter

    getClientAddress, getClientInetSocketAddress, getClientPort, getClientSocketAddress, getClientSocketPort

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

    getErrorType

    Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.net.NetServerAttributesGetter

    getNetworkType, getSockFamily, getTransport

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

    getNetworkProtocolName, getNetworkProtocolVersion, getNetworkTransport

    Methods inherited from interface io.opentelemetry.instrumentation.api.instrumenter.network.ServerAttributesGetter

    getServerAddress, getServerInetSocketAddress, getServerPort, getServerSocketAddress, getServerSocketDomain, getServerSocketPort
  • Constructor Details

    • DefaultHttpServerAttributesExtractor

      public DefaultHttpServerAttributesExtractor()
      Deprecated.
  • Method Details

    • getFlavor

      @Nullable @Deprecated public String getFlavor(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      This method was removed from OpenTelemetry. It should not be used since always returned null in Micrometer Tracing.
    • getUrlPath

      @Nullable public String getUrlPath(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      Specified by:
      getUrlPath in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
      Specified by:
      getUrlPath in interface io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<io.micrometer.tracing.http.HttpServerRequest>
    • getUrlQuery

      @Nullable public String getUrlQuery(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      Specified by:
      getUrlQuery in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
      Specified by:
      getUrlQuery in interface io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<io.micrometer.tracing.http.HttpServerRequest>
    • getTarget

      @Nullable @Deprecated public String getTarget(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      This method was removed from OpenTelemetry. Please use getUrlPath(HttpServerRequest) and getUrlQuery(HttpServerRequest) instead.
    • getHttpRoute

      @Nullable public String getHttpRoute(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      Specified by:
      getHttpRoute in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
    • getRoute

      @Nullable @Deprecated public String getRoute(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      This method was removed from OpenTelemetry. Please use getHttpRoute(HttpServerRequest) instead.
    • getUrlScheme

      @Nullable public String getUrlScheme(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      Specified by:
      getUrlScheme in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpServerAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
      Specified by:
      getUrlScheme in interface io.opentelemetry.instrumentation.api.instrumenter.url.UrlAttributesGetter<io.micrometer.tracing.http.HttpServerRequest>
    • getScheme

      @Nullable @Deprecated public String getScheme(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      This method was removed from OpenTelemetry. Please use getUrlScheme(HttpServerRequest) instead.
    • getHttpRequestMethod

      @Nullable public String getHttpRequestMethod(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      Specified by:
      getHttpRequestMethod in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
    • getMethod

      @Nullable @Deprecated public String getMethod(io.micrometer.tracing.http.HttpServerRequest httpServerRequest)
      Deprecated.
      This method was removed from OpenTelemetry. Please use getHttpRequestMethod(HttpServerRequest) instead.
    • getHttpRequestHeader

      public List<String> getHttpRequestHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, String name)
      Deprecated.
      Specified by:
      getHttpRequestHeader in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
    • getRequestHeader

      @Deprecated public List<String> getRequestHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, String name)
      Deprecated.
      This method was removed from OpenTelemetry. Please use getHttpRequestHeader(HttpServerRequest, String) instead.
    • getHttpResponseStatusCode

      @Nullable public Integer getHttpResponseStatusCode(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, @Nullable Throwable error)
      Deprecated.
      Specified by:
      getHttpResponseStatusCode in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
    • getStatusCode

      @Nullable @Deprecated public Integer getStatusCode(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, Throwable error)
      Deprecated.
      This method was removed from OpenTelemetry. Please use getHttpResponseStatusCode(HttpServerRequest, HttpServerResponse, Throwable) instead.
    • getHttpResponseHeader

      public List<String> getHttpResponseHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, String name)
      Deprecated.
      Specified by:
      getHttpResponseHeader in interface io.opentelemetry.instrumentation.api.instrumenter.http.HttpCommonAttributesGetter<io.micrometer.tracing.http.HttpServerRequest,io.micrometer.tracing.http.HttpServerResponse>
    • getResponseHeader

      @Deprecated public List<String> getResponseHeader(io.micrometer.tracing.http.HttpServerRequest httpServerRequest, io.micrometer.tracing.http.HttpServerResponse httpServerResponse, String name)
      Deprecated.
      This method was removed from OpenTelemetry. Please use getHttpResponseHeader(HttpServerRequest, HttpServerResponse, String) instead.