Skip to content

Commit b697845

Browse files
committed
Add warning about 3.0
1 parent bdca31d commit b697845

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sentry_sdk/_init_implementation.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
import warnings
23

34
from typing import TYPE_CHECKING
45

@@ -25,6 +26,10 @@ def _init(*args: Optional[str], **kwargs: Any) -> None:
2526
setup_scope_context_management()
2627
client = sentry_sdk.Client(*args, **kwargs)
2728
sentry_sdk.get_global_scope().set_client(client)
29+
warnings.warn(
30+
"We won't be continuing development on SDK 3.0. Please use the last stable version of the SDK to get access to the newest features and fixes. See https://github.com/getsentry/sentry-python/discussions/4955",
31+
stacklevel=2,
32+
)
2833
_check_python_deprecations()
2934

3035

0 commit comments

Comments
 (0)