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

When a server uses threads, it loses the context of the context manager

Open spellr opened this issue 7 years ago • 1 comments

If a server uses threads, i.e. to send requests concurrently to other servers, the threads lose the context stored in the context manager caller thread. This means the threads won't have the context stored by the context manager, and they'll open a new trace.

spellr avatar Aug 12 '18 16:08 spellr

If your server is managing threads manually, the instrumentation has no way of knowing what the correct causality semantics of operations between those threads are. You may have to manage context propagation manually.

yurishkuro avatar Dec 30 '18 21:12 yurishkuro