Class NettyHttpClientTracer


  • public class NettyHttpClientTracer
    extends io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpHeaders,​org.jboss.netty.handler.codec.http.HttpResponse>
    • Field Summary

      • Fields inherited from class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer

        DEFAULT_SPAN_NAME, netPeerAttributes, USER_AGENT
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connectionFailure​(io.opentelemetry.context.Context parentContext, org.jboss.netty.channel.Channel channel, Throwable throwable)  
      protected @Nullable String flavor​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)  
      protected String getInstrumentationName()  
      protected io.opentelemetry.context.propagation.TextMapSetter<org.jboss.netty.handler.codec.http.HttpHeaders> getSetter()  
      protected String method​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)  
      protected String requestHeader​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest, String name)  
      protected String responseHeader​(org.jboss.netty.handler.codec.http.HttpResponse httpResponse, String name)  
      io.opentelemetry.context.Context startSpan​(io.opentelemetry.context.Context parentContext, org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.handler.codec.http.HttpRequest request)  
      protected Integer status​(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)  
      static NettyHttpClientTracer tracer()  
      protected URI url​(org.jboss.netty.handler.codec.http.HttpRequest request)  
      • Methods inherited from class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer

        end, end, endExceptionally, endExceptionally, endMaybeExceptionally, inject, onRequest, onRequest, onResponse, shouldStartSpan, spanNameForRequest, startSpan, startSpan, startSpan
      • Methods inherited from class io.opentelemetry.instrumentation.api.tracer.BaseTracer

        end, end, endExceptionally, endExceptionally, extract, getVersion, inject, onException, shouldStartSpan, spanBuilder, startSpan, startSpan, startSpan, unwrapThrowable, withClientSpan, withConsumerSpan, withServerSpan
    • Method Detail

      • startSpan

        public io.opentelemetry.context.Context startSpan​(io.opentelemetry.context.Context parentContext,
                                                          org.jboss.netty.channel.ChannelHandlerContext ctx,
                                                          org.jboss.netty.handler.codec.http.HttpRequest request)
      • connectionFailure

        public void connectionFailure​(io.opentelemetry.context.Context parentContext,
                                      org.jboss.netty.channel.Channel channel,
                                      Throwable throwable)
      • method

        protected String method​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
        Specified by:
        method in class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpHeaders,​org.jboss.netty.handler.codec.http.HttpResponse>
      • flavor

        protected @Nullable String flavor​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
        Overrides:
        flavor in class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpHeaders,​org.jboss.netty.handler.codec.http.HttpResponse>
      • url

        protected URI url​(org.jboss.netty.handler.codec.http.HttpRequest request)
                   throws URISyntaxException
        Specified by:
        url in class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpHeaders,​org.jboss.netty.handler.codec.http.HttpResponse>
        Throws:
        URISyntaxException
      • status

        protected Integer status​(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)
        Specified by:
        status in class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpHeaders,​org.jboss.netty.handler.codec.http.HttpResponse>
      • requestHeader

        protected String requestHeader​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest,
                                       String name)
        Specified by:
        requestHeader in class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpHeaders,​org.jboss.netty.handler.codec.http.HttpResponse>
      • responseHeader

        protected String responseHeader​(org.jboss.netty.handler.codec.http.HttpResponse httpResponse,
                                        String name)
        Specified by:
        responseHeader in class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpHeaders,​org.jboss.netty.handler.codec.http.HttpResponse>
      • getSetter

        protected io.opentelemetry.context.propagation.TextMapSetter<org.jboss.netty.handler.codec.http.HttpHeaders> getSetter()
        Specified by:
        getSetter in class io.opentelemetry.instrumentation.api.tracer.HttpClientTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpHeaders,​org.jboss.netty.handler.codec.http.HttpResponse>
      • getInstrumentationName

        protected String getInstrumentationName()
        Specified by:
        getInstrumentationName in class io.opentelemetry.instrumentation.api.tracer.BaseTracer