We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abedda8 commit 3d7b6d6Copy full SHA for 3d7b6d6
sentry_sdk/client.py
@@ -442,12 +442,12 @@ def _prepare_event(
442
443
previous_total_spans: Optional[int] = None
444
previous_total_breadcrumbs: Optional[int] = None
445
+ is_transaction = event.get("type") == "transaction"
446
447
if event.get("timestamp") is None:
448
event["timestamp"] = datetime.now(timezone.utc)
449
450
if scope is not None:
- is_transaction = event.get("type") == "transaction"
451
spans_before = len(event.get("spans", []))
452
event_ = scope.apply_to_event(event, hint, self.options)
453
0 commit comments