Skip to content

ref: Remove SpanKwargs and TransactionKwargs #4254

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
merged 1 commit into from
Apr 9, 2025

Conversation

szokeasaurusrex
Copy link
Member

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


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:48
@szokeasaurusrex szokeasaurusrex requested review from sentrivana and removed request for a team April 8, 2025 13:48
Copy link
Contributor

@sentrivana sentrivana left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 (f78c49d).
Report is 2 commits behind head on potel-base.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@              Coverage Diff               @@
##           potel-base    #4254      +/-   ##
==============================================
- Coverage       83.53%   83.52%   -0.01%     
==============================================
  Files             144      144              
  Lines           14689    14689              
  Branches         2328     2328              
==============================================
- Hits            12270    12269       -1     
  Misses           1697     1697              
- Partials          722      723       +1     
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% <ø> (ø)
sentry_sdk/tracing.py 79.88% <ø> (ø)

... and 1 file with indirect coverage changes

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
@sentrivana
Copy link
Contributor

@szokeasaurusrex Can we merge this or do you still want to change anything?

@szokeasaurusrex szokeasaurusrex merged commit 9977769 into potel-base Apr 9, 2025
127 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/no-span-kwargs branch April 9, 2025 09:09
@szokeasaurusrex
Copy link
Member Author

@sentrivana merged

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