Skip to content

Commit 7fe387d

Browse files
committed
set otel tool call attributes
1 parent bd776a9 commit 7fe387d

File tree

1 file changed

+2
-0
lines changed
  • packages/node/src/integrations/tracing/vercelai

1 file changed

+2
-0
lines changed

packages/node/src/integrations/tracing/vercelai/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ const _vercelAIIntegration = ((options: VercelAiOptions = {}) => {
5050
) {
5151
addOriginToSpan(span, 'auto.vercelai.otel');
5252
span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_OP, 'gen_ai.execute_tool');
53+
span.setAttribute('gen_ai.tool.call.id', attributes[AI_TOOL_CALL_ID_ATTRIBUTE]);
54+
span.setAttribute('gen_ai.tool.name', attributes[AI_TOOL_CALL_NAME_ATTRIBUTE]);
5355
span.updateName(`execute_tool ${attributes[AI_TOOL_CALL_NAME_ATTRIBUTE]}`);
5456
return;
5557
}

0 commit comments

Comments
 (0)