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 07840f6 commit ce8bc07Copy full SHA for ce8bc07
veadk/tracing/telemetry/telemetry.py
@@ -227,11 +227,15 @@ def trace_call_llm(
227
model_name=invocation_context.agent.model_name
228
if isinstance(invocation_context.agent, Agent)
229
else "",
230
- call_type=span.context.trace_state.get("call_type")
231
- if hasattr(span, "context")
232
- and hasattr(span.context, "trace_state")
233
- and hasattr(span.context.trace_state, "get")
234
- else "",
+ call_type=(
+ span.context.trace_state.get("call_type", "")
+ if (
+ hasattr(span, "context")
+ and hasattr(span.context, "trace_state")
235
+ and hasattr(span.context.trace_state, "get")
236
+ )
237
+ else ""
238
+ ),
239
)
240
241
llm_attributes_mapping = ATTRIBUTES.get("llm", {})
0 commit comments