Repository navigation
ref(scope): Remove unused _ScopeManager - #8155
Merged
Merged
Conversation
Co-Authored-By: Ivana Kellyer <ivana.kellyer@sentry.io>
sentrivana
approved these changes
Oct 29, 2026
Contributor
Coverage Results 📊✅ 57523 passed | ⏭️ 2979 skipped | Total: 60502 | Pass Rate: 95.08% | Execution Time: 154m 51s All tests are passing successfully. ✅ Patch coverage is 100.00% (no changed executable lines found; target 80%). Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## master #8155 +/-##
==========================================
- Coverage 90.33% 90.21% -0.12%
==========================================
Files 203 198 -5
Tracked lines 26872 21289 -5583
Branches 10044 7378 -2666
==========================================
- Hits 24272 19204 -5068
+ Misses 2600 2085 -515
+ Partials 1520 1238 -282Generated by Coverage Action |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Removes the private
_ScopeManagerclass fromsentry_sdk/scope.py. Nothing onmajor/3.0uses it anymore.It was the context manager behind
push_scope()and theHubscope helpers. #6919 ("Drop hub related code in new major") and #6944 ("Removepush_scope,configure_scopein new major") removed those callers and their imports, but left the class behind.Evidence
major/3.0,git grep -w _ScopeManagermatches only the class definition insentry_sdk/andtests/. The only other hits are historicalCHANGELOG.mdandMIGRATION_GUIDE.mdentries from 2.0 about it moving out ofsentry_sdk.hub.It's underscore-private and isn't exported, so this doesn't touch the public API.
Issues
n/a
via Ivana Kellyer.
--
View Junior Session [Sentry]