ref(rust): Don't implement separate scope management #5639
Merged
GitHub Actions / warden: find-bugs
completed
Mar 11, 2026 in 1m 36s
1 issue
find-bugs: Found 1 issue (1 high)
High
Span.__exit__() called without required arguments causing TypeError at runtime - `sentry_sdk/integrations/rust_tracing.py:226`
The on_close method calls sentry_span.__exit__() without any arguments, but Span.__exit__ requires three positional arguments (ty, value, tb) as shown in sentry_sdk/tracing.py line 396-398. This will cause a TypeError at runtime when closing any Rust tracing span, completely breaking the integration's span lifecycle.
Duration: 1m 33s · Tokens: 343.0k in / 3.0k out · Cost: $0.56 (+extraction: $0.00, +fix_gate: $0.00)
Annotations
Check failure on line 226 in sentry_sdk/integrations/rust_tracing.py
github-actions / warden: find-bugs
Span.__exit__() called without required arguments causing TypeError at runtime
The `on_close` method calls `sentry_span.__exit__()` without any arguments, but `Span.__exit__` requires three positional arguments (`ty`, `value`, `tb`) as shown in `sentry_sdk/tracing.py` line 396-398. This will cause a `TypeError` at runtime when closing any Rust tracing span, completely breaking the integration's span lifecycle.
Loading