-
Notifications
You must be signed in to change notification settings - Fork 39
Fix @metric_scope for generator and async generator functions #113
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
Conversation
anyone plan on merging this in? this fixes the no current running event loop error for us, we will have to fork the repo otherwise if this is not merged in. @acradu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Can you do a latest release with this change? |
Seconded, we are currently using a fork with this change but it would be nice to point to this repo again. |
PR Code Suggestions ✨
|
Issue #, if available:
Description of changes:
This change updates
@metric_scope
to iterate through the wrapped generator, allowing metric collection on each iteration