diff --git a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx index eaa86a491dd2b5..84116d1fd14fcc 100644 --- a/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx +++ b/develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx @@ -83,7 +83,7 @@ Additional attributes on the span: Describes a tool execution. - The spans `op` MUST be `"gen_ai.execute_tool"`. -- The spans `name` SHOULD be `"gen_ai.execute_tool {gen_ai.tool.name}"`. (e.g. `"gen_ai.execute_tool query_database"`) +- The spans `name` SHOULD be `"execute_tool {gen_ai.tool.name}"`. (e.g. `"execute_tool query_database"`) - The `gen_ai.tool.name` attribute SHOULD be set to the name of the tool. (e.g. `"query_database"`) - All [Common Span Attributes](#common-span-attributes) SHOULD be set (all `required` common attributes MUST be set). diff --git a/docs/platforms/javascript/common/tracing/instrumentation/ai-agents-module.mdx b/docs/platforms/javascript/common/tracing/instrumentation/ai-agents-module.mdx index f837ba9eb233bb..78655c880a7e35 100644 --- a/docs/platforms/javascript/common/tracing/instrumentation/ai-agents-module.mdx +++ b/docs/platforms/javascript/common/tracing/instrumentation/ai-agents-module.mdx @@ -191,7 +191,7 @@ if (result.toolCalls && result.toolCalls.length > 0) { await Sentry.startSpan( { op: "gen_ai.execute_tool", - name: `gen_ai.execute_tool ${tool.name}`, + name: `execute_tool ${tool.name}`, attributes: { "gen_ai.system": myAi.modelProvider, "gen_ai.request.model": myAi.model, diff --git a/docs/platforms/python/tracing/instrumentation/custom-instrumentation/ai-agents-module.mdx b/docs/platforms/python/tracing/instrumentation/custom-instrumentation/ai-agents-module.mdx index b90f1605a6d4da..cd3cacf2c5d2a8 100644 --- a/docs/platforms/python/tracing/instrumentation/custom-instrumentation/ai-agents-module.mdx +++ b/docs/platforms/python/tracing/instrumentation/custom-instrumentation/ai-agents-module.mdx @@ -160,7 +160,7 @@ if my_should_call_tool(result): with sentry_sdk.start_span( op="gen_ai.execute_tool", - name=f"gen_ai.execute_tool {tool.name}" + name=f"execute_tool {tool.name}" ) as span: # set data about LLM and tool span.set_data("gen_ai.system", my_ai.model_provider) diff --git a/includes/tracing/ai-agents-module/execute-tool-span.mdx b/includes/tracing/ai-agents-module/execute-tool-span.mdx index bbd1adb5684af9..dd5bae50579c48 100644 --- a/includes/tracing/ai-agents-module/execute-tool-span.mdx +++ b/includes/tracing/ai-agents-module/execute-tool-span.mdx @@ -1,7 +1,7 @@ Describes a tool execution. - The span `op` MUST be `"gen_ai.execute_tool"`. -- The span `name` SHOULD be `"gen_ai.execute_tool {gen_ai.tool.name}"`. (e.g. `"gen_ai.execute_tool query_database"`) +- The span `name` SHOULD be `"execute_tool {gen_ai.tool.name}"`. (e.g. `"execute_tool query_database"`) - The `gen_ai.tool.name` attribute SHOULD be set to the name of the tool. (e.g. `"query_database"`) - All [Common Span Attributes](#common-span-attributes) SHOULD be set (all `required` common attributes MUST be set).