Class HttpClientPeerServiceAttributesExtractor

java.lang.Object
io.opentelemetry.instrumentation.api.incubator.semconv.http.HttpClientPeerServiceAttributesExtractor

@Deprecated public final class HttpClientPeerServiceAttributesExtractor extends Object
Extractor of the peer.service span attribute, described in the specification.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <REQUEST, RESPONSE>
    io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE>
    create(io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<REQUEST,RESPONSE> attributesGetter, PeerServiceResolver peerServiceResolver)
    Deprecated.
    Returns a new AttributesExtractor that will use the passed attributesGetter to extract server address and port (with fallback to the HTTP Host header).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • create

      public static <REQUEST, RESPONSE> io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<REQUEST,RESPONSE> create(io.opentelemetry.instrumentation.api.semconv.http.HttpClientAttributesGetter<REQUEST,RESPONSE> attributesGetter, PeerServiceResolver peerServiceResolver)
      Deprecated.
      Returns a new AttributesExtractor that will use the passed attributesGetter to extract server address and port (with fallback to the HTTP Host header).