We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b769ed6 commit 0776a7fCopy full SHA for 0776a7f
util/opentelemetry-util-genai/src/opentelemetry/util/genai/generators.py
@@ -273,9 +273,9 @@ def _span_for_invocation(self, invocation: LLMInvocation):
273
The span is not ended automatically on exiting the context; callers
274
must finalize via _finalize_invocation.
275
"""
276
- system = invocation.attributes.get("system")
+ request_model = invocation.attributes.get("request_model")
277
span = self._start_span(
278
- name=f"{system}.chat",
+ name=f"{GenAI.GenAiOperationNameValues.CHAT.value} {request_model}",
279
kind=SpanKind.CLIENT,
280
parent_run_id=invocation.parent_run_id,
281
)
0 commit comments