Commit 462a04b
Release v3.8.21 - AWS Bedrock ARN parsing fix (#545)
* capture different types of google genai inputs (#534)
Co-authored-by: Obinna Okafor <obinna.okafor01@gmail.com>
* Read stream before saving attributes. Parse modelId in a more robust way.
* Decide based on model name on the set of attributes tracked.
* Added basic test for model ID parsing.
* Added replay tests for AWS Bedrock.
* Added test for streaming requests too.
* Obinna/fix awsbedrock streaming response (#538)
* fix aws bedrock streaming bug
* bump version
* add deprecated dependency
* restrict current pinecone instrumentation to v6.0.2
* hard code boto3 dependency version
* fix duplicate event stream
* set test aws key
* Fix AWS Bedrock ARN parsing issue in converse methods (#544)
* Fix AWS Bedrock ARN parsing issue in converse methods
- Replace modelId.split('.') with parse_vendor_and_model_name_from_model_id
- Fixes crash when using ARN or cross-region model IDs with multiple dots
- Makes patch_converse and patch_converse_stream consistent with other methods
Resolves ValueError: too many values to unpack (expected 2) when using:
- ARN format: arn:aws:bedrock:us-east-1:<account_id>:inference-profile/us.anthropic.claude-3-haiku-20240307-v1:0
- Cross-region format: us.anthropic.claude-sonnet-4-20250514-v1:0
Co-Authored-By: karthik@scale3labs.com <karthik@scale3labs.com>
* Bump version to 3.8.21 for ARN parsing bug fix
Co-Authored-By: karthik@scale3labs.com <karthik@scale3labs.com>
---------
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: karthik@scale3labs.com <karthik@scale3labs.com>
---------
Co-authored-by: obinnascale3 <109410793+obinnascale3@users.noreply.github.com>
Co-authored-by: Obinna Okafor <obinna.okafor01@gmail.com>
Co-authored-by: m1kl0sh <miklos.erdelyi@moduscreate.com>
Co-authored-by: Obinna Okafor <obinna@scale3labs.com>
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: karthik@scale3labs.com <karthik@scale3labs.com>1 parent b62abd9 commit 462a04b
File tree
10 files changed
+386
-21
lines changed- src
- langtrace_python_sdk
- constants/instrumentation
- instrumentation
- aws_bedrock
- pinecone
- tests/aws_bedrock
- cassettes
10 files changed
+386
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
8 | 12 | | |
9 | 13 | | |
10 | 14 | | |
| |||
Lines changed: 75 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| 48 | + | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
| |||
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
| 110 | + | |
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
| |||
128 | 131 | | |
129 | 132 | | |
130 | 133 | | |
131 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
132 | 137 | | |
133 | 138 | | |
134 | 139 | | |
| |||
137 | 142 | | |
138 | 143 | | |
139 | 144 | | |
140 | | - | |
| 145 | + | |
141 | 146 | | |
142 | 147 | | |
143 | 148 | | |
| |||
167 | 172 | | |
168 | 173 | | |
169 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
170 | 190 | | |
171 | 191 | | |
172 | 192 | | |
173 | | - | |
| 193 | + | |
174 | 194 | | |
175 | 195 | | |
| 196 | + | |
| 197 | + | |
176 | 198 | | |
177 | 199 | | |
178 | 200 | | |
| |||
193 | 215 | | |
194 | 216 | | |
195 | 217 | | |
196 | | - | |
| 218 | + | |
197 | 219 | | |
198 | 220 | | |
| 221 | + | |
| 222 | + | |
199 | 223 | | |
200 | 224 | | |
201 | 225 | | |
| |||
217 | 241 | | |
218 | 242 | | |
219 | 243 | | |
220 | | - | |
| 244 | + | |
221 | 245 | | |
222 | 246 | | |
223 | 247 | | |
| |||
241 | 265 | | |
242 | 266 | | |
243 | 267 | | |
244 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
245 | 272 | | |
246 | | - | |
| 273 | + | |
247 | 274 | | |
248 | | - | |
249 | | - | |
250 | 275 | | |
251 | 276 | | |
252 | 277 | | |
253 | 278 | | |
254 | 279 | | |
255 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
256 | 284 | | |
257 | 285 | | |
258 | 286 | | |
| |||
356 | 384 | | |
357 | 385 | | |
358 | 386 | | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
359 | 408 | | |
360 | 409 | | |
361 | 410 | | |
| |||
442 | 491 | | |
443 | 492 | | |
444 | 493 | | |
445 | | - | |
| 494 | + | |
446 | 495 | | |
447 | 496 | | |
448 | | - | |
| 497 | + | |
449 | 498 | | |
450 | 499 | | |
451 | 500 | | |
| |||
475 | 524 | | |
476 | 525 | | |
477 | 526 | | |
478 | | - | |
479 | 527 | | |
480 | 528 | | |
| 529 | + | |
481 | 530 | | |
482 | 531 | | |
483 | 532 | | |
| 533 | + | |
484 | 534 | | |
| 535 | + | |
485 | 536 | | |
486 | 537 | | |
487 | 538 | | |
| |||
496 | 547 | | |
497 | 548 | | |
498 | 549 | | |
499 | | - | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
500 | 555 | | |
501 | 556 | | |
502 | 557 | | |
| |||
505 | 560 | | |
506 | 561 | | |
507 | 562 | | |
508 | | - | |
509 | | - | |
510 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
511 | 568 | | |
512 | 569 | | |
513 | 570 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Lines changed: 45 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
Lines changed: 41 additions & 0 deletions
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
0 commit comments