Skip to content

added async_capture_span for decorating coroutines and async with#657

Merged
beniwohli merged 5 commits intoelastic:masterfrom
beniwohli:asyncio-capture_span
Nov 29, 2019
Merged

added async_capture_span for decorating coroutines and async with#657
beniwohli merged 5 commits intoelastic:masterfrom
beniwohli:asyncio-capture_span

Conversation

@beniwohli
Copy link
Contributor

What does this pull request do?

It adds a new API, async_capture_span, which can be used to decorate
coroutines and asynchronous context managers (async with).

Additionally, it adds instrumentation for asyncio.tasks.sleep.

Why is it important?

Providing these APIs allows ourselves and our users to instrument
asynchronous applications.

Related issues

refs #598

@beniwohli beniwohli force-pushed the asyncio-capture_span branch from afe7a8a to 1287d28 Compare November 28, 2019 10:00
Copy link
Member

@axw axw left a comment

Choose a reason for hiding this comment

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

Nice!

@beniwohli beniwohli merged commit 80a2c74 into elastic:master Nov 29, 2019
@beniwohli beniwohli deleted the asyncio-capture_span branch November 29, 2019 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants