Skip to content

ref: Remove deprecated Transaction creation method #2917

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

This has been deprecated for 4 years, so I suppose we can remove it now in 2.0.

Removing the __new__ method also fixes our API docs for the Span and Transaction constructors. The __new__ method causes the API docs to show both classes as only taking opaque **kwargs, like so:

image

Following this change, the arguments are displayed correctly in the API docs:

image

Partially addresses getsentry/sentry-docs#5082

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.

👍🏻

@szokeasaurusrex szokeasaurusrex merged commit cf5a94f into sentry-sdk-2.0 Mar 28, 2024
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/remove-deprecated-tx-creation branch March 28, 2024 12:23
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.

3 participants