Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 746 Bytes

File metadata and controls

18 lines (14 loc) · 746 Bytes

brave-instrumentation-netty-codec-http

This module contains a tracing decorators for Netty's Http Codec 4.x.

NettyHttpTracing.serverHandler() extracts trace state from incoming requests, and reports to Zipkin how long each take, along with relevant tags like the http url.

Configuration

To enable tracing for an http server you need to add it to your pipeline:

NettyHttpTracing nettyHttpTracing = NettyHttpTracing.create(httpTracing);
ChannelPipeline pipeline = ch.pipeline();
... add your infrastructure handlers, in particular HttpRequestDecoder and HttpResponseEncoder
pipeline.addLast("tracing", nettyHttpTracing.serverHandler());
... add your application handlers