Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions MIGRATION_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,20 @@ Looking to upgrade from Sentry SDK 2.x to 3.x? Here's a comprehensive list of wh

### Changed

- The `Span()` constructor does not accept a `hub` parameter anymore.
- `Span.finish()` does not accept a `hub` parameter anymore.
- The `Profile()` constructor does not accept a `hub` parameter anymore.
- A `Profile` object does not have a `.hub` property anymore.

### Removed

- Class `Hub` has been removed.
- Class `_ScopeManager` has been removed.
- The context manager `auto_session_tracking()` has been removed. Use `track_session()` instead.
- The context manager `auto_session_tracking_scope()` has been removed. Use `track_session()` instead.
- Utility function `is_auto_session_tracking_enabled()` has been removed. There is no public replacement. There is a private `_is_auto_session_tracking_enabled()` (if you absolutely need this function) It accepts a `scope` parameter instead of the previously used `hub` parameter.
- Utility function `is_auto_session_tracking_enabled_scope()` has been removed. There is no public replacement. There is a private `_is_auto_session_tracking_enabled()` (if you absolutely need this function)

### Deprecated


Expand Down
3 changes: 0 additions & 3 deletions docs/apidocs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
API Docs
========

.. autoclass:: sentry_sdk.Hub
:members:

.. autoclass:: sentry_sdk.Scope
:members:

Expand Down
4 changes: 0 additions & 4 deletions sentry_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from sentry_sdk.consts import VERSION # noqa

__all__ = [ # noqa
"Hub",
"Scope",
"Client",
"Transport",
Expand Down Expand Up @@ -50,6 +49,3 @@

init_debug_support()
del init_debug_support

# circular imports
from sentry_sdk.hub import Hub
Loading