Skip to content

Commit cc9e1d2

Browse files
committed
avoid slice
1 parent d794cfb commit cc9e1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils/vercel-ai.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ function processEndedVercelAiSpan(span: SpanJSON): void {
103103
// Change attributes namespaced with `ai.X` to `vercel.ai.X`
104104
for (const key of Object.keys(attributes)) {
105105
if (key.startsWith('ai.')) {
106-
renameAttributeKey(attributes, key, `vercel.ai.${key.slice(3)}`);
106+
renameAttributeKey(attributes, key, `vercel.${key}`);
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)