Skip to content

Commit 029b87d

Browse files
wikaaaaacopybara-github
authored andcommitted
fix(otel): change gen_ai.tool_definitions to gen_ai.tool.definitions
Co-authored-by: Wiktoria Walczak <wwalczak@google.com> PiperOrigin-RevId: 907418898
1 parent 662354a commit 029b87d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/google/adk/telemetry/_experimental_semconv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
try:
5252
from opentelemetry.semconv._incubating.attributes.gen_ai_attributes import GEN_AI_TOOL_DEFINITIONS
5353
except ImportError:
54-
GEN_AI_TOOL_DEFINITIONS = 'gen_ai.tool_definitions'
54+
GEN_AI_TOOL_DEFINITIONS = 'gen_ai.tool.definitions'
5555

5656
OTEL_SEMCONV_STABILITY_OPT_IN = 'OTEL_SEMCONV_STABILITY_OPT_IN'
5757

tests/unittests/telemetry/test_spans.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
try:
6161
from opentelemetry.semconv._incubating.attributes.gen_ai_attributes import GEN_AI_TOOL_DEFINITIONS
6262
except ImportError:
63-
GEN_AI_TOOL_DEFINITIONS = 'gen_ai.tool_definitions'
63+
GEN_AI_TOOL_DEFINITIONS = 'gen_ai.tool.definitions'
6464

6565

6666
class Event:

0 commit comments

Comments
 (0)