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

Use an event loop to coordinate async SDK work #3274

Open
aabmass opened this issue Apr 20, 2023 · 0 comments
Open

Use an event loop to coordinate async SDK work #3274

aabmass opened this issue Apr 20, 2023 · 0 comments

Comments

@aabmass
Copy link
Member

aabmass commented Apr 20, 2023

Originally from #62 (comment)

For example handling periodic exporting in BatchSpanProcessor and PeriodicExportingMetricReader could be done in a single asyncio event loop (using a single thread) across all instances of all of these objects.

We could avoid creating a new background thread in each instance of those classes and it would simplify the synchronization logic. Would work nicely with async exporters and async callbacks which could all run in the same event loop #3273.

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

No branches or pull requests

1 participant