Skip to content

Commit 76cadd6

Browse files
committed
Fix operation name of llm span
Change-Id: I4a6f48d0f66b8ad00a6ce4be8dcf4a46aba68e33 Co-developed-by: Cursor <[email protected]>
1 parent 20b740c commit 76cadd6

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
@@ -55,7 +55,7 @@ def _get_llm_common_attributes(
5555
"""
5656
attributes: dict[str, Any] = {}
5757
attributes[GenAI.GEN_AI_OPERATION_NAME] = (
58-
GenAI.GenAiOperationNameValues.CHAT.value
58+
invocation.operation_name
5959
)
6060
if invocation.request_model:
6161
attributes[GenAI.GEN_AI_REQUEST_MODEL] = invocation.request_model

0 commit comments

Comments
 (0)