Skip to content

Commit 96f86e3

Browse files
send version field in json
1 parent 449457b commit 96f86e3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

sentry_sdk/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,10 @@ def capture_event(
11501150
"item_count": len(converted_gen_ai_spans),
11511151
},
11521152
payload=PayloadRef(
1153-
json={"items": converted_gen_ai_spans},
1153+
json={
1154+
"version": 2,
1155+
"items": converted_gen_ai_spans,
1156+
},
11541157
),
11551158
)
11561159
)

0 commit comments

Comments
 (0)