Skip to content

Commit 3e55795

Browse files
client changes
1 parent bab7567 commit 3e55795

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sentry_sdk/client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,10 +1113,14 @@ def capture_event(
11131113

11141114
envelope = Envelope(headers=headers)
11151115

1116-
if is_transaction:
1116+
if is_transaction and not self.options["_experiments"].get(
1117+
"gen_ai_as_v2_spans", False
1118+
):
11171119
if isinstance(profile, Profile):
11181120
envelope.add_profile(profile.to_json(event_opt, self.options))
11191121

1122+
envelope.add_transaction(event_opt)
1123+
elif is_transaction:
11201124
split_spans = _split_gen_ai_spans(event_opt)
11211125
if split_spans is None or not split_spans[1]:
11221126
envelope.add_transaction(event_opt)

0 commit comments

Comments
 (0)