Commit 065ce1a
authored
fix(tracing): Set span operations for AI spans with model ID only (#18471)
Fixes an issue where VercelAI integration span operations were not being
set correctly because the validation was too restrictive. I relaxed the
condition to only require `ai.model.id` attribute instead of both
`ai.model.id` and `ai.model.provider` as provider attribute is optional
and may not always be present on spans
Closes https://linear.app/getsentry/issue/JS-12801 parent 5affac5 commit 065ce1a
1 file changed
+3
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
68 | | - | |
69 | | - | |
| 67 | + | |
| 68 | + | |
70 | 69 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 70 | + | |
74 | 71 | | |
75 | 72 | | |
76 | 73 | | |
| |||
0 commit comments