-
Notifications
You must be signed in to change notification settings - Fork 529
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
feat(sessions): Remove deprecated functions #3424
Conversation
Test Failures Detected: Due to failing tests, we cannot provide coverage reports at this time. ❌ Failed Test Results:Completed 13513 tests with View the full list of failed testspy3.8-gevent
|
Will have to re-review this after looking at the prereq PR -- didn't realize these functions are not deprecated atm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comment in #3419
Deprecate the Hub-based `is_auto_session_tracking_enabled` and the Scope-based `is_auto_session_tracking_enabled_scope`, and replace them with a new Scope-based private-API equivalent. Partially implements #3417
Make several changes to prepare for fully removing Hubs in the next major: - Deprecate the Hub-based `auto_session_tracking` function, replacing it with a new Scope-based function called `track_session` - Deprecate the scope-based `auto_session_tracking_scope` in favor of the new `track_session` function - Change usages of `auto_session_tracking_scope` to `track_sessions`. There are no usages of `auto_session_tracking` outside of tests. - Run all tests that were previously run against `auto_session_tracking` also against the new `track_session`. Previously, `auto_session_tracking_scope` was completely untested. Fixes #3417
Remove the deprecated functions from `sessions.py` (this includes all Hub-based logic) and all tests for these functions. BREAKING CHANGE: Remove `sentry_sdk.sessions.auto_session_tracking`. BREAKING CHANGE: Remove `sentry_sdk.sessions.is_auto_session_tracking_enabled`. BREAKING CHANGE: Remove `sentry_sdk.sessions.is_auto_session_tracking_enabled_scope`. BREAKING CHANGE: Remove `sentry_sdk.sessions.is_auto_session_tracking_enabled_scope`. Closes: #3416
85cb6d0
to
ef1bc38
Compare
As this has been implemented here:
I will close this PR. |
Remove the deprecated functions from
sessions.py
(this includes all Hub-based logic) and all tests for these functions.BREAKING CHANGE: Remove
sentry_sdk.sessions.auto_session_tracking
.BREAKING CHANGE: Remove
sentry_sdk.sessions.is_auto_session_tracking_enabled
.BREAKING CHANGE: Remove
sentry_sdk.sessions.is_auto_session_tracking_enabled_scope
.BREAKING CHANGE: Remove
sentry_sdk.sessions.is_auto_session_tracking_enabled_scope
.Closes: #3416