Class OkHttpNetAttributesExtractor

  • All Implemented Interfaces:
    io.opentelemetry.instrumentation.api.instrumenter.AttributesExtractor<okhttp3.Request,​okhttp3.Response>

    public final class OkHttpNetAttributesExtractor
    extends io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesExtractor<okhttp3.Request,​okhttp3.Response>
    • Constructor Detail

      • OkHttpNetAttributesExtractor

        public OkHttpNetAttributesExtractor()
    • Method Detail

      • transport

        public String transport​(okhttp3.Request request,
                                @Nullable
                                okhttp3.Response response)
        Specified by:
        transport in class io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesExtractor<okhttp3.Request,​okhttp3.Response>
      • peerName

        @Nullable
        public String peerName​(okhttp3.Request request,
                               @Nullable
                               okhttp3.Response response)
        Specified by:
        peerName in class io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesExtractor<okhttp3.Request,​okhttp3.Response>
      • peerPort

        public Integer peerPort​(okhttp3.Request request,
                                @Nullable
                                okhttp3.Response response)
        Specified by:
        peerPort in class io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesExtractor<okhttp3.Request,​okhttp3.Response>
      • peerIp

        @Nullable
        public String peerIp​(okhttp3.Request request,
                             @Nullable
                             okhttp3.Response response)
        Specified by:
        peerIp in class io.opentelemetry.instrumentation.api.instrumenter.net.NetClientAttributesExtractor<okhttp3.Request,​okhttp3.Response>