We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e55795 commit 6d1d7edCopy full SHA for 6d1d7ed
1 file changed
sentry_sdk/client.py
@@ -1113,12 +1113,12 @@ def capture_event(
1113
1114
envelope = Envelope(headers=headers)
1115
1116
+ if is_transaction and isinstance(profile, Profile):
1117
+ envelope.add_profile(profile.to_json(event_opt, self.options))
1118
+
1119
if is_transaction and not self.options["_experiments"].get(
1120
"gen_ai_as_v2_spans", False
1121
):
- if isinstance(profile, Profile):
- envelope.add_profile(profile.to_json(event_opt, self.options))
-
1122
envelope.add_transaction(event_opt)
1123
elif is_transaction:
1124
split_spans = _split_gen_ai_spans(event_opt)
0 commit comments