Repository navigation
Commit 8cf904d
authored
ref(google-genai): Drop
Remove `send_default_pii` branches from the integration.
Add the `data_collection` option to all tests for the integration, with `gen_ai` options enabled if `send_default_pii=True` previously, and `gen_ai` options disabled if `send_default_pii=False` previously.
When `send_default_pii` was not previously supplied to `sentry_init()`, provide `data_collection={}`.
Split tests that were parametrized on `send_default_pii` into two tests with `gen_ai` options enabled and disabled (the latter suffixed with `_no_sensitive_data`).
Remove cases of `_data_collection`-suffixed tests that are now exercised by existing tests.
Closes #7596send_default_pii support (#7739)1 parent 944a204 commit 8cf904d
3 files changed
Lines changed: 360 additions & 498 deletions
File tree
- sentry_sdk/integrations/google_genai
- tests/integrations/google_genai
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| 155 | + | |
165 | 156 | | |
166 | 157 | | |
167 | 158 | | |
168 | 159 | | |
169 | 160 | | |
170 | 161 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 162 | + | |
179 | 163 | | |
180 | 164 | | |
181 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
919 | 917 | | |
920 | 918 | | |
921 | 919 | | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
928 | | - | |
929 | | - | |
930 | | - | |
931 | | - | |
| 920 | + | |
932 | 921 | | |
933 | 922 | | |
934 | 923 | | |
| |||
937 | 926 | | |
938 | 927 | | |
939 | 928 | | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
| 929 | + | |
944 | 930 | | |
945 | 931 | | |
946 | 932 | | |
| |||
1043 | 1029 | | |
1044 | 1030 | | |
1045 | 1031 | | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
| 1032 | + | |
1053 | 1033 | | |
1054 | 1034 | | |
1055 | 1035 | | |
1056 | 1036 | | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
1063 | | - | |
1064 | | - | |
1065 | | - | |
| 1037 | + | |
1066 | 1038 | | |
1067 | 1039 | | |
1068 | | - | |
1069 | 1040 | | |
1070 | 1041 | | |
1071 | 1042 | | |
| |||
1111 | 1082 | | |
1112 | 1083 | | |
1113 | 1084 | | |
1114 | | - | |
1115 | | - | |
1116 | | - | |
1117 | | - | |
1118 | | - | |
1119 | | - | |
1120 | | - | |
1121 | | - | |
| 1085 | + | |
1122 | 1086 | | |
1123 | 1087 | | |
1124 | 1088 | | |
| |||
0 commit comments