From 99caaadc7d81cd4f2b70a7dfa9c822d3d6ec12c7 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Mon, 14 Sep 2026 13:35:35 +0200 Subject: [PATCH] Don't attach stacktrace to check-ins --- sentry_sdk/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sentry_sdk/client.py b/sentry_sdk/client.py index d47a994c91..e3c6370c9c 100644 --- a/sentry_sdk/client.py +++ b/sentry_sdk/client.py @@ -783,6 +783,7 @@ def _prepare_event( event["timestamp"] = datetime.now(timezone.utc) is_transaction = event.get("type") == "transaction" + is_checkin = event.get("type") == "check_in" if scope is not None: spans_before = len(cast(List[Dict[str, object]], event.get("spans", []))) @@ -837,6 +838,7 @@ def _prepare_event( if ( not is_transaction + and not is_checkin and self.options["attach_stacktrace"] and "exception" not in event and "stacktrace" not in event