OpenTracing Module

rnburn nginx-forum at forum.nginx.org
Thu Sep 14 01:19:49 UTC 2017


Hello Everyone,

I've been working on an NGINX module
[github.com/rnburn/nginx-opentracing] to add support for OpenTracing
[http://opentracing.io]. It uses OpenTracing's C++ API
[http://github.com/opentracing/opentracing-cpp] and attaches handlers
to the NGX_HTTP_PREACCESS_PHASE  and NGX_HTTP_LOG_PHASE phases to
start/stop spans to track requests handled.

It currently supports LightStep's C++ tracer
[github.com/lightstep/lightstep-tracer-cpp] and a C++ version of
Zipkin's tracer [github.com/rnburn/zipkin-cpp-opentracing].

I put together a simple example
[github.com/rnburn/nginx-opentracing/tree/master/example/trivial] that
shows it interoperating with a Go server traced with Zipkin and wrote
up a description for a more complicated example
[github.com/rnburn/nginx-opentracing/blob/master/doc/Tutorial.md]
showing it working with a Node server using LightStep.

If anyone would like to try it or has any feedback, let me know.
Ryan

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276370,276370#msg-276370



More information about the nginx mailing list