Skip to content

Fix python logs in asyncio code not showing up in scuba #155

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

Closed

Conversation

eliothedeman
Copy link
Contributor

Differential Revision: D75957462

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jun 4, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
@eliothedeman eliothedeman force-pushed the export-D75957462 branch 2 times, most recently from f04f1e7 to 4f0b525 Compare June 10, 2025 14:47
eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

2 similar comments
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:
Pull Request resolved: pytorch-labs#155

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:
Pull Request resolved: pytorch-labs#155

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:
Pull Request resolved: pytorch-labs#155

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
…#155)

Summary:
Pull Request resolved: pytorch-labs#155

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D75957462

eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
eliothedeman added a commit to eliothedeman/monarch that referenced this pull request Jun 10, 2025
…#155)

Summary:

Because we are running our python asyncio event loop on an os thread that tokio doesn't manage, we need to manually propagate our context and create a span while our code is running.

This diff adds some helper functions to manually enter and exit a span whenever actor based asyncio code is running.

Reviewed By: dulinriley

Differential Revision: D75957462
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 7d62658.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants