Skip to content

Commit f668820

Browse files
authored
Small fix in ai agents span spec (#14487)
<!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [X] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent 8436336 commit f668820

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

develop-docs/sdk/telemetry/traces/modules/ai-agents.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Additional attributes on the span:
8383
Describes a tool execution.
8484

8585
- The spans `op` MUST be `"gen_ai.execute_tool"`.
86-
- The spans `name` SHOULD be `"gen_ai.execute_tool {gen_ai.tool.name}"`. (e.g. `"gen_ai.execute_tool query_database"`)
86+
- The spans `name` SHOULD be `"execute_tool {gen_ai.tool.name}"`. (e.g. `"execute_tool query_database"`)
8787
- The `gen_ai.tool.name` attribute SHOULD be set to the name of the tool. (e.g. `"query_database"`)
8888
- All [Common Span Attributes](#common-span-attributes) SHOULD be set (all `required` common attributes MUST be set).
8989

docs/platforms/javascript/common/tracing/instrumentation/ai-agents-module.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ if (result.toolCalls && result.toolCalls.length > 0) {
191191
await Sentry.startSpan(
192192
{
193193
op: "gen_ai.execute_tool",
194-
name: `gen_ai.execute_tool ${tool.name}`,
194+
name: `execute_tool ${tool.name}`,
195195
attributes: {
196196
"gen_ai.system": myAi.modelProvider,
197197
"gen_ai.request.model": myAi.model,

docs/platforms/python/tracing/instrumentation/custom-instrumentation/ai-agents-module.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ if my_should_call_tool(result):
160160

161161
with sentry_sdk.start_span(
162162
op="gen_ai.execute_tool",
163-
name=f"gen_ai.execute_tool {tool.name}"
163+
name=f"execute_tool {tool.name}"
164164
) as span:
165165
# set data about LLM and tool
166166
span.set_data("gen_ai.system", my_ai.model_provider)

includes/tracing/ai-agents-module/execute-tool-span.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Describes a tool execution.
22

33
- The span `op` MUST be `"gen_ai.execute_tool"`.
4-
- The span `name` SHOULD be `"gen_ai.execute_tool {gen_ai.tool.name}"`. (e.g. `"gen_ai.execute_tool query_database"`)
4+
- The span `name` SHOULD be `"execute_tool {gen_ai.tool.name}"`. (e.g. `"execute_tool query_database"`)
55
- The `gen_ai.tool.name` attribute SHOULD be set to the name of the tool. (e.g. `"query_database"`)
66
- All [Common Span Attributes](#common-span-attributes) SHOULD be set (all `required` common attributes MUST be set).
77

0 commit comments

Comments
 (0)