Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Asyncio support. #507

Merged
merged 2 commits into from
Feb 19, 2024
Merged

Enable Asyncio support. #507

merged 2 commits into from
Feb 19, 2024

Conversation

pvital
Copy link
Member

@pvital pvital commented Feb 15, 2024

As we support now only the Python runtime >= 3.7, the usage of the ContextVarsScopeManager as Tracer's scope manager is indicated to provide automatic Span propagation from parent coroutines, tasks and scheduled in event loop callbacks to their children.

Signed-off-by: Paulo Vital [email protected]

@pvital pvital requested a review from Ferenc- February 15, 2024 06:58
@pvital pvital self-assigned this Feb 15, 2024
@pvital pvital requested a review from GSVarsha February 15, 2024 06:58
@pvital pvital force-pushed the enable_asyncio_support branch from 3563c47 to fe679b5 Compare February 16, 2024 09:45
Copy link
Collaborator

@Ferenc- Ferenc- left a comment

Choose a reason for hiding this comment

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

In general I see the same tests passing before and after this change.
In order to see that this change has an added value, perhaps we could see some more tests passing? We could enable tornado 6.4 tests and see if this really enables something new which was not possible before.

@pvital
Copy link
Member Author

pvital commented Feb 16, 2024

In general I see the same tests passing before and after this change. In order to see that this change has an added value, perhaps we could see some more tests passing? We could enable tornado 6.4 tests and see if this really enables something new which was not possible before.

@Ferenc-, IMO, for a refactor commit, after changing something that creates a difference in the future execution, having all UT passing is a good signal that the code's functionality remains the same even after the refactoring changes.

Regarding the support for Tornado > 6.0, this will demand more changes, and I am working on it in a different branch at the moment and will open a new PR for that later.

@pvital pvital force-pushed the enable_asyncio_support branch from fe679b5 to 779021a Compare February 16, 2024 13:37
Copy link
Collaborator

@Ferenc- Ferenc- left a comment

Choose a reason for hiding this comment

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

I do see a lot of value in the findings proven by this PR. Perhaps I was to worried at first.

Copy link
Contributor

@GSVarsha GSVarsha left a comment

Choose a reason for hiding this comment

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

My only suggestion would be to move the imports to the top of the file as mentioned in previous comments. Other than that, the PR looks good to me!

As we support now only the Python runtime >= 3.7, the usage of the ContextVarsScopeManager as Tracer's scope manager is indicated to provide automatic Span propagation from parent coroutines, tasks and scheduled in event loop callbacks to their children.

Signed-off-by: Paulo Vital <[email protected]>
Used ruff (vscode) to:
 - Black-compatible code formatting.
 - fix all auto-fixable violations, like unused imports.
 - isort-compatible import sorting.

Signed-off-by: Paulo Vital <[email protected]>
@pvital pvital force-pushed the enable_asyncio_support branch from 779021a to a8feb6c Compare February 19, 2024 08:45
Copy link
Collaborator

@Ferenc- Ferenc- left a comment

Choose a reason for hiding this comment

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

Looks good.

@pvital pvital merged commit 92d3efd into master Feb 19, 2024
12 checks passed
@pvital pvital deleted the enable_asyncio_support branch February 19, 2024 09:44
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.

3 participants