opentracing-python-instrumentation icon indicating copy to clipboard operation
opentracing-python-instrumentation copied to clipboard

http server, before request, should start a new request context

Open spellr opened this issue 7 years ago • 1 comments

Right now the server can use RequestContextManager to create a new context when it get a request. That way, the context's span will be used by the http clients it uses and the trace will be passed to the servers that it calls. But no reason it won't happen in http_server's before_request.

That way, when a server sends request to another server using an http client, the same trace of the incoming request will be used by the next servers, and the server doesn't need to create the context itself.

spellr avatar Aug 12 '18 16:08 spellr

RequestContextManager is going to be deprecated once PR #54 is merged.

I am not sure what exactly you're proposing.

yurishkuro avatar Dec 30 '18 20:12 yurishkuro