Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Add notion of context_id to event loop #165

Closed
GoogleCodeExporter opened this issue Apr 10, 2015 · 6 comments
Closed

Add notion of context_id to event loop #165

GoogleCodeExporter opened this issue Apr 10, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

It's crucial to have an analogue of threadlocal object for coroutines. Tools 
like newrelic use it to provide deep performance analysis, web developers need 
to know details about the current request being served etc.

The proposed solution to this problem is to add an API to set a context_id when 
asyncio.Task is created. This context_id will then be automatically assigned to 
all callbacks, futures and tasks the original task has given birth to.

Original issue reported on code.google.com by yseliva...@gmail.com on 15 Apr 2014 at 7:50

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant