sdk
sdk copied to clipboard
Jaeger: pass-through tracing
Currently, Jaeger tracing is enabled on a per-application basis. (see #556)
It would be convenient to enable it on a per-request basis. E.g. suppose Jaeger tracing is enabled globally on the NSC, but not on the NSMgr and NSE. NSMgr and NSE should trace requests coming from this NSC.
Use-case: the user may want to trace a request coming from a particular NSC, but not interested in requests coming from other NSCs.
Proposed implementation: enable trace
wrapper if opentracing-related gRPC metadata is present in an incoming request.