Skip to content

Commit 7d21b92

Browse files
committed
Fix lint issues.
1 parent 70aa31b commit 7d21b92

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

instrumentation-genai/opentelemetry-instrumentation-google-genai/src/opentelemetry/instrumentation/google_genai/tool_call_wrapper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ def _create_function_span_attributes(
9393
result = {}
9494
if extra_span_attributes:
9595
result.update(extra_span_attributes)
96-
result["gen_ai.operation.name"] = "execute_tool"
96+
result["gen_ai.operation.name"] = "execute_tool"
9797
result["gen_ai.tool.name"] = wrapped_function.__name__
9898
if wrapped_function.__doc__:
99-
result["gen_ai.tool.description"] = wrapped_function.__doc__
99+
result["gen_ai.tool.description"] = wrapped_function.__doc__
100100
result[code_attributes.CODE_FUNCTION_NAME] = wrapped_function.__name__
101101
result["code.module"] = wrapped_function.__module__
102102
result["code.args.positional.count"] = len(function_args)

instrumentation-genai/opentelemetry-instrumentation-google-genai/tests/utils/test_tool_call_wrapper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def somefunction():
148148
def test_has_description_if_doc_string_present(self):
149149
def somefunction():
150150
"""An example tool call function."""
151-
pass
152151

153152
wrapped_somefunction = self.wrap(somefunction)
154153
self.otel.assert_does_not_have_span_named("execute_tool somefunction")

0 commit comments

Comments
 (0)