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