Search in sources :

Example 1 with NettyClientRequestWrapper

use of com.navercorp.pinpoint.plugin.netty.NettyClientRequestWrapper in project pinpoint by naver.

the class HttpEncoderInterceptor method doInAfterTrace.

protected void doInAfterTrace(SpanEventRecorder recorder, Object target, Object[] args, Object result, Throwable throwable) {
    recorder.recordApi(methodDescriptor);
    recorder.recordException(throwable);
    final ChannelHandlerContext channelHandlerContext = (ChannelHandlerContext) args[0];
    final HttpMessage httpMessage = (HttpMessage) args[1];
    this.clientRequestRecorder.record(recorder, new NettyClientRequestWrapper(httpMessage, channelHandlerContext), throwable);
}
Also used : NettyClientRequestWrapper(com.navercorp.pinpoint.plugin.netty.NettyClientRequestWrapper) ChannelHandlerContext(io.netty.channel.ChannelHandlerContext) HttpMessage(io.netty.handler.codec.http.HttpMessage)

Aggregations

NettyClientRequestWrapper (com.navercorp.pinpoint.plugin.netty.NettyClientRequestWrapper)1 ChannelHandlerContext (io.netty.channel.ChannelHandlerContext)1 HttpMessage (io.netty.handler.codec.http.HttpMessage)1