Skip to content

Commit 20b740c

Browse files
committed
Fix span name
Change-Id: I7adf6fc9cf0bcbed3927862ff87d441bb2a1f78b Co-developed-by: Cursor <[email protected]>
1 parent 71572c6 commit 20b740c

File tree

1 file changed

+1
-1
lines changed
  • util/opentelemetry-util-genai/src/opentelemetry/util/genai

1 file changed

+1
-1
lines changed

util/opentelemetry-util-genai/src/opentelemetry/util/genai/span_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _get_llm_common_attributes(
6767

6868
def _get_llm_span_name(invocation: LLMInvocation) -> str:
6969
"""Get the span name for an LLM invocation."""
70-
return f"{GenAI.GenAiOperationNameValues.CHAT.value} {invocation.request_model}".strip()
70+
return f"{invocation.operation_name} {invocation.request_model}".strip()
7171

7272

7373
def _get_llm_messages_attributes_for_span(

0 commit comments

Comments
 (0)