Skip to content

feat(tracing): Remove containing_transaction #4255

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

Merged

Conversation

szokeasaurusrex
Copy link
Member

BREAKING CHANGE: Remove Span.containing_transaction. Use Span.root_span instead.

Closes #4253


Thank you for contributing to sentry-python! Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval.

@szokeasaurusrex szokeasaurusrex requested a review from a team as a code owner April 8, 2025 13:55
@szokeasaurusrex szokeasaurusrex requested review from sentrivana and removed request for a team April 8, 2025 13:55
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-containing_transaction branch from b1cb74e to 1483b15 Compare April 8, 2025 13:59
Copy link

codecov bot commented Apr 8, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.52%. Comparing base (43133b3) to head (da5e47f).
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    #4255      +/-   ##
==============================================
- Coverage       83.53%   83.52%   -0.01%     
==============================================
  Files             144      144              
  Lines           14689    14684       -5     
  Branches         2328     2328              
==============================================
- Hits            12270    12265       -5     
  Misses           1697     1697              
  Partials          722      722              
Files with missing lines Coverage Δ
sentry_sdk/api.py 94.25% <ø> (ø)
sentry_sdk/integrations/opentelemetry/scope.py 95.69% <ø> (ø)
sentry_sdk/scope.py 82.38% <100.00%> (ø)
sentry_sdk/tracing.py 79.57% <100.00%> (-0.31%) ⬇️

... and 2 files with indirect coverage changes

@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-containing_transaction branch 2 times, most recently from 2620177 to 1483b15 Compare April 8, 2025 14:24
These classes were added so that `start_transaction`'s `kwargs` would be typed.

Now that that function is deprecated, these classes are no longer needed. The types have also now diverged from the actual signature of `Span.__init__`, making their continued presence confusing
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/no-span-kwargs branch from 505a921 to f78c49d Compare April 8, 2025 14:25
BREAKING CHANGE: Remove `Span.containing_transaction`. Use `Span.root_span` instead.

Closes #4253
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/remove-containing_transaction branch from 1483b15 to da5e47f Compare April 8, 2025 14:27
Base automatically changed from szokeasaurusrex/no-span-kwargs to potel-base April 9, 2025 09:09
@szokeasaurusrex szokeasaurusrex merged commit 6584ce0 into potel-base Apr 9, 2025
127 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/remove-containing_transaction branch April 9, 2025 13:42
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.

2 participants