Class NettyHttpServerTracer


  • public class NettyHttpServerTracer
    extends io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
    • Field Summary

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

        CONTEXT_ATTRIBUTE, USER_AGENT
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void attachServerContext​(io.opentelemetry.context.Context context, ChannelTraceContext channelTraceContext)  
      protected String flavor​(org.jboss.netty.channel.Channel channel, org.jboss.netty.handler.codec.http.HttpRequest request)  
      protected io.opentelemetry.context.propagation.TextMapGetter<org.jboss.netty.handler.codec.http.HttpRequest> getGetter()  
      protected String getInstrumentationName()  
      io.opentelemetry.context.Context getServerContext​(ChannelTraceContext channelTraceContext)  
      protected String method​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)  
      protected String peerHostIp​(org.jboss.netty.channel.Channel channel)  
      protected Integer peerPort​(org.jboss.netty.channel.Channel channel)  
      protected String requestHeader​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest, String name)  
      protected int responseStatus​(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)  
      static NettyHttpServerTracer tracer()  
      protected String url​(org.jboss.netty.handler.codec.http.HttpRequest request)  
      • Methods inherited from class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer

        customizeContext, end, end, endExceptionally, endExceptionally, endExceptionally, getServerSpan, isRelativeUrl, onConnection, onConnectionAndRequest, onRequest, startSpan, startSpan, startSpan
      • Methods inherited from class io.opentelemetry.instrumentation.api.tracer.BaseTracer

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

      • NettyHttpServerTracer

        public NettyHttpServerTracer()
    • Method Detail

      • method

        protected String method​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
        Specified by:
        method in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • requestHeader

        protected String requestHeader​(org.jboss.netty.handler.codec.http.HttpRequest httpRequest,
                                       String name)
        Specified by:
        requestHeader in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • responseStatus

        protected int responseStatus​(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)
        Specified by:
        responseStatus in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • attachServerContext

        protected void attachServerContext​(io.opentelemetry.context.Context context,
                                           ChannelTraceContext channelTraceContext)
        Specified by:
        attachServerContext in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • getServerContext

        public io.opentelemetry.context.Context getServerContext​(ChannelTraceContext channelTraceContext)
        Specified by:
        getServerContext in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • url

        protected String url​(org.jboss.netty.handler.codec.http.HttpRequest request)
        Specified by:
        url in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • peerHostIp

        protected String peerHostIp​(org.jboss.netty.channel.Channel channel)
        Specified by:
        peerHostIp in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • flavor

        protected String flavor​(org.jboss.netty.channel.Channel channel,
                                org.jboss.netty.handler.codec.http.HttpRequest request)
        Specified by:
        flavor in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • getGetter

        protected io.opentelemetry.context.propagation.TextMapGetter<org.jboss.netty.handler.codec.http.HttpRequest> getGetter()
        Specified by:
        getGetter in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>
      • getInstrumentationName

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

        protected Integer peerPort​(org.jboss.netty.channel.Channel channel)
        Specified by:
        peerPort in class io.opentelemetry.instrumentation.api.tracer.HttpServerTracer<org.jboss.netty.handler.codec.http.HttpRequest,​org.jboss.netty.handler.codec.http.HttpResponse,​org.jboss.netty.channel.Channel,​ChannelTraceContext>