Workable / flask-log-request-id

Flask extension to track and log Request-ID headers produced by PaaS like Heroku and load balancers like Amazon ELB
MIT License
113 stars 23 forks source link

Add utils to forward traceid at celery #3

Closed sque closed 7 years ago

sque commented 7 years ago

This is usefull for the scenario where an HTTP requests triggers an async job on a celery worker and the administrator would like to track from the logs of the worker, which request initiated this worker.

There is a POC implementation that uses celery protocol headers to pass OOB data with the current trace id. This implementation could be shipped under flask_traceid.utils package.