Skip to content

Add async span context manager #4680

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

Open
wants to merge 1 commit into
base: potel-base
Choose a base branch
from

Conversation

srothh
Copy link
Member

@srothh srothh commented Aug 6, 2025

Add an async span context manager to allow for cleaner nesting in async code. Currently only delegates to the synchronous context manager.

Fixes GH-2007

Add an async span context manager to allow for cleaner nesting in async code. Currently only delegates to the synchronous context manager.

GH-2007
@srothh
Copy link
Member Author

srothh commented Aug 6, 2025

Linter error seems unrelated

Copy link

codecov bot commented Aug 6, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.99%. Comparing base (c27ac1f) to head (8c64626).
⚠️ Report is 6 commits behind head on potel-base.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@              Coverage Diff               @@
##           potel-base    #4680      +/-   ##
==============================================
+ Coverage       83.75%   84.99%   +1.23%     
==============================================
  Files             158      158              
  Lines           15517    15521       +4     
  Branches         2456     2456              
==============================================
+ Hits            12997    13192     +195     
+ Misses           1765     1573     -192     
- Partials          755      756       +1     
Files with missing lines Coverage Δ
sentry_sdk/tracing.py 81.91% <100.00%> (+0.25%) ⬆️

... and 11 files with indirect coverage changes

@srothh srothh marked this pull request as ready for review August 6, 2025 14:45
@srothh srothh requested a review from a team as a code owner August 6, 2025 14:45
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.

1 participant