Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion includes/tracing/ai-agents-module/execute-tool-span.mdx
Original file line number Diff line number Diff line change
@@ -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).

Expand Down