Repository navigation
Commit 5a2015e
fix(boto3): Skip malformed Bedrock stream chunks and gate stream outputs once
Malformed InvokeModelWithResponseStream chunks are skipped quietly instead
of reporting an SDK internal error, like the non-streamed response path.
The buffered stream content is already gated on recording outputs, so
serialize it directly rather than checking the gate a second time. That
makes the buffering gate the only gate, so tests cover it.
Co-Authored-By: Sergiy Dybskiy <3760543+sergical@users.noreply.github.com>1 parent 68389c6 commit 5a2015e
2 files changed
Lines changed: 47 additions & 2 deletions
File tree
- sentry_sdk/integrations/boto3/_services
- tests/integrations/boto3
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
| 813 | + | |
813 | 814 | | |
814 | | - | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
| 818 | + | |
815 | 819 | | |
816 | 820 | | |
817 | 821 | | |
| |||
882 | 886 | | |
883 | 887 | | |
884 | 888 | | |
885 | | - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
886 | 894 | | |
887 | 895 | | |
888 | 896 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2150 | 2150 | | |
2151 | 2151 | | |
2152 | 2152 | | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
| 2172 | + | |
| 2173 | + | |
| 2174 | + | |
| 2175 | + | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
| 2184 | + | |
| 2185 | + | |
| 2186 | + | |
| 2187 | + | |
| 2188 | + | |
| 2189 | + | |
2153 | 2190 | | |
2154 | 2191 | | |
2155 | 2192 | | |
| |||
0 commit comments