Commit 0ae889a
fix(langchain): Wrap finish_reason in array for gen_ai span attribute
The gen_ai.response.finish_reasons attribute should be an array of
strings per the semantic convention. Wrap the single finish_reason
value in a list before setting the span data.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c3e3acc commit 0ae889a
File tree
2 files changed
+8
-1
lines changed- sentry_sdk/integrations
- tests/integrations/langchain
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
554 | 554 | | |
555 | 555 | | |
556 | 556 | | |
557 | | - | |
| 557 | + | |
| 558 | + | |
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
300 | 306 | | |
301 | 307 | | |
302 | 308 | | |
| |||
0 commit comments