File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/node/src/integrations/tracing/vercelai Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,13 @@ const _vercelAIIntegration = ((options: VercelAiOptions = {}) => {
64
64
name === 'ai.toolCall'
65
65
) {
66
66
addOriginToSpan ( span , 'auto.vercelai.otel' ) ;
67
+ span . updateName ( `execute_tool ${ attributes [ AI_TOOL_CALL_NAME_ATTRIBUTE ] } ` ) ;
68
+
67
69
span . setAttribute ( SEMANTIC_ATTRIBUTE_SENTRY_OP , 'gen_ai.execute_tool' ) ;
68
70
renameAttributeKey ( attributes , AI_TOOL_CALL_NAME_ATTRIBUTE , 'gen_ai.tool.name' ) ;
69
71
renameAttributeKey ( attributes , AI_TOOL_CALL_ID_ATTRIBUTE , 'gen_ai.tool.call.id' ) ;
70
72
renameAttributeKey ( attributes , AI_TOOL_CALL_ARGS_ATTRIBUTE , 'gen_ai.tool.input' ) ;
71
73
renameAttributeKey ( attributes , AI_TOOL_CALL_RESULT_ATTRIBUTE , 'gen_ai.tool.output' ) ;
72
- span . updateName ( `execute_tool ${ attributes [ AI_TOOL_CALL_NAME_ATTRIBUTE ] } ` ) ;
73
74
74
75
// https://opentelemetry.io/docs/specs/semconv/registry/attributes/gen-ai/#gen-ai-tool-type
75
76
if ( ! attributes [ 'gen_ai.tool.type' ] ) {
You can’t perform that action at this time.
0 commit comments