Skip to content

Commit 56085f8

Browse files
authored
chore(sdk): Use add_full_stack by default (#91939)
The option has been enabled since the weekend (getsentry/sentry-options-automator#3902). This undoes some of what was added [here](#91062).
1 parent 4f74eac commit 56085f8

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/sentry/options/defaults.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2367,13 +2367,6 @@
23672367

23682368
# END: SDK Crash Detection
23692369

2370-
# Whether to add the full stack trace to Python errors.
2371-
register(
2372-
"sentry_sdk.add_full_stack",
2373-
default=False,
2374-
flags=FLAG_AUTOMATOR_MODIFIABLE,
2375-
)
2376-
23772370
register(
23782371
# Lists the shared resource ids we want to account usage for.
23792372
"shared_resources_accounting_enabled",

src/sentry/utils/sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ class Dsns(NamedTuple):
285285
def _get_sdk_options() -> tuple[SdkConfig, Dsns]:
286286
sdk_options = settings.SENTRY_SDK_CONFIG.copy()
287287
sdk_options["send_client_reports"] = True
288+
sdk_options["add_full_stack"] = True
288289
sdk_options["traces_sampler"] = traces_sampler
289290
sdk_options["before_send_transaction"] = before_send_transaction
290291
sdk_options["before_send"] = before_send
@@ -296,7 +297,6 @@ def _get_sdk_options() -> tuple[SdkConfig, Dsns]:
296297
before_send_log=before_send_log,
297298
enable_logs=True,
298299
)
299-
sdk_options["add_full_stack"] = options.get("sentry_sdk.add_full_stack", False)
300300

301301
# Modify SENTRY_SDK_CONFIG in your deployment scripts to specify your desired DSN
302302
dsns = Dsns(

0 commit comments

Comments
 (0)