Skip to content

DeprecationWarning raised when using sentry_sdk.trace #4289

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

Closed
bruceduhamel opened this issue Apr 14, 2025 · 2 comments · Fixed by #4290
Closed

DeprecationWarning raised when using sentry_sdk.trace #4289

bruceduhamel opened this issue Apr 14, 2025 · 2 comments · Fixed by #4290
Assignees
Labels

Comments

@bruceduhamel
Copy link

How do you use Sentry?

Sentry Saas (sentry.io)

Version

2.26.0

Steps to Reproduce

Since upgrading sentry-sdk[fastapi] to 2.26.0 I am seeing deprecation warnings for code that uses the sentry_sdk.trace decorator.

DeprecationWarning: The `same_process_as_parent` parameter is deprecated.

This warning appears to be related to configuring spans with the same_process_as_parent argument, but I am not using that function directly.

The previous version, 2.25.0 does not emit this warning.

Expected Result

No deprecation warning should be emitted, since as far as I can tell, sentry_sdk.trace is not marked deprecated.

Actual Result

DeprecationWarning: The `same_process_as_parent` parameter is deprecated.
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Apr 14, 2025
@sentrivana
Copy link
Contributor

Thanks @bruceduhamel, this was an oversight, we'll get rid of the deprecation warning in the next release (probably tomorrow).

@sentrivana
Copy link
Contributor

Fixed in 2.26.1.

@stephanie-anderson stephanie-anderson added the Python SDK label Apr 25, 2025 — with Linear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants