chore: Drop more deprecated stuff - #7263
Conversation
Codecov Results 📊✅ 110471 passed | ⏭️ 5428 skipped | Total: 115899 | Pass Rate: 95.32% | Execution Time: 373m 24s 📊 Comparison with Base Branch
➖ Removed Tests (1)View removed tests
All tests are passing successfully. ✅ Patch coverage is 100.00%. Project has 2238 uncovered lines. Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 90.24% 90.59% +0.35%
==========================================
Files 193 185 -8
Lines 25474 23775 -1699
Branches 9378 8756 -622
==========================================
+ Hits 22988 21537 -1451
- Misses 2486 2238 -248
- Partials 1431 1368 -63Generated by Codecov Action |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6f4bd53. Configure here.
| if event is not None: | ||
| self.capture_event(event) | ||
|
|
||
|
|
There was a problem hiding this comment.
Callable transports silently send events
High Severity
After function transports were removed, a callable passed as transport is no longer recognized. make_transport then falls through and constructs the default HttpTransport whenever a DSN is set. Callers that still pass a function (for example a no-op or a list-append in tests) will silently send real events to Sentry instead of failing. The ClientConstructor type still lists Callable[[Event], None] as valid, so type checkers will not catch this.
Reviewed by Cursor Bugbot for commit 6f4bd53. Configure here.


Changes:
max_spansoption ofLangchainIntegrationsentry_sdk.init()context managerconfigure_debug_hubBaggage.from_options()Transport.capture_event()FunctionTransportScope.trace_propagation_metafunction no longer accepts aspanas argumentScope.levelScope.userScope.iter_headersCloses https://linear.app/getsentry/issue/PY-1935/drop-deprecated-stuff