How to log contextual trace-id in an asynchronous scala application with slf4j + logback? -


i trying use mdc pass contextual information logging, asynchronous nature of scala means thread local model of mdc won't work application.

although 1 possible solution problem offered here (https://github.com/jroper/thread-local-context-propagation/), readme states author not recommend solution , instead recommends passing context explicitly.

so given pass context explicitly, i'm wondering how using logback in way can programmatically parse out trace-id later on. help!


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -