[openstack-dev] Using thread local storage for correlation_id
Brian Elliott
bdelliott at gmail.com
Tue Jun 4 19:00:46 UTC 2013
Hi Venkatesh,
>
> We are planning to make the correlation_id available for logging through thread local storage especially using the existing 'local.strong_store' reference. ( available from oslo-incubator/openstack/common/local.py).
> ie., by setting the correlation_id as attribute to 'local.strong_store' in the correlation_id middleware.
>
> Wish to know if its good idea to use the thread local storage from local.py for correlation_id so that it could be used by respective services.
>
My personal preference is to pass the correlation id around explicitly rather than using thread local storage. At least in Nova, there is a request context where there is already a well-established pattern of storing this type of information.
Thanks,
Brian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20130604/a069fcd5/attachment.html>
More information about the OpenStack-dev
mailing list