Skip to content

Conversation

@palazzem
Copy link

Overview

  • minor refactoring for in-process context propagation for asyncio
  • refactoring unittests
  • patch() and unpatch() methods don't use any kwarg

@palazzem palazzem added this to the 0.9.0 milestone Jun 30, 2017
@palazzem palazzem requested a review from LotharSee June 30, 2017 13:15

tracer.configure(context_provider=context_provider)
wrapt.wrap_function_wrapper('asyncio', 'BaseEventLoop.create_task', _wrapped_create_task)
loop = asyncio.get_event_loop()
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because not all the time the BaseEventLoop is used, we take the current event loop implementation and patch directly the real create_task() that is used.

@palazzem palazzem merged commit 35d3f5b into master Jul 3, 2017
@palazzem palazzem deleted the palazzem/asyncio-propagation branch July 3, 2017 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants