-
Notifications
You must be signed in to change notification settings - Fork 608
Span should support async context manager protocol #2007
Copy link
Copy link
Closed
Labels
Better Async SupportFeaturePythonSDKSDKTriagedHas been looked at recently during old issue triageHas been looked at recently during old issue triage
Metadata
Metadata
Assignees
Labels
Better Async SupportFeaturePythonSDKSDKTriagedHas been looked at recently during old issue triageHas been looked at recently during old issue triage
Fields
Give feedbackNo fields configured for issues without a type.
Projects
Status
No status
Problem Statement
SpanandTransactionshould support async context manager protocol to avoid unnecessary nesting.As an example:
Could be shortened to
Solution Brainstorm
I think currently
__aenter__and__aexit__could do the same as their synchronous counterparts and later could be replaced with async code, if that would be possible at some point 🤔