Class NettyHttpServerTracer
- java.lang.Object
-
- io.opentelemetry.instrumentation.api.tracer.BaseTracer
-
- 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>
-
- io.opentelemetry.javaagent.instrumentation.netty.v3_8.server.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>
-
-
Constructor Summary
Constructors Constructor Description NettyHttpServerTracer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidattachServerContext(io.opentelemetry.context.Context context, ChannelTraceContext channelTraceContext)protected Stringflavor(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 StringgetInstrumentationName()io.opentelemetry.context.ContextgetServerContext(ChannelTraceContext channelTraceContext)protected Stringmethod(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)protected StringpeerHostIp(org.jboss.netty.channel.Channel channel)protected IntegerpeerPort(org.jboss.netty.channel.Channel channel)protected StringrequestHeader(org.jboss.netty.handler.codec.http.HttpRequest httpRequest, String name)protected intresponseStatus(org.jboss.netty.handler.codec.http.HttpResponse httpResponse)static NettyHttpServerTracertracer()protected Stringurl(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
-
-
-
-
Method Detail
-
tracer
public static NettyHttpServerTracer tracer()
-
method
protected String method(org.jboss.netty.handler.codec.http.HttpRequest httpRequest)
- Specified by:
methodin classio.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:
requestHeaderin classio.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:
responseStatusin classio.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:
attachServerContextin classio.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:
getServerContextin classio.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:
urlin classio.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:
peerHostIpin classio.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:
flavorin classio.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:
getGetterin classio.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:
getInstrumentationNamein classio.opentelemetry.instrumentation.api.tracer.BaseTracer
-
peerPort
protected Integer peerPort(org.jboss.netty.channel.Channel channel)
- Specified by:
peerPortin classio.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>
-
-