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