Repository navigation
Commit d29d509
committed
fix(google-genai): Set response ID and model on streaming spans
accumulate_streaming_response() initialized response_id and model to
None but never read them from the chunks, so streaming chat spans never
had gen_ai.response.id or gen_ai.response.model.
Fixes #58121 parent 860a060 commit d29d509
2 files changed
Lines changed: 17 additions & 0 deletions
File tree
- sentry_sdk/integrations/google_genai
- tests/integrations/google_genai
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
62 | 67 | | |
63 | 68 | | |
64 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
866 | 866 | | |
867 | 867 | | |
868 | 868 | | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
869 | 877 | | |
870 | 878 | | |
871 | 879 | | |
| |||
916 | 924 | | |
917 | 925 | | |
918 | 926 | | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
919 | 931 | | |
920 | 932 | | |
921 | 933 | | |
| |||
0 commit comments