Skip to content

Commit ed91c38

Browse files
committed
chore: gen_ai.system field
1 parent 5756377 commit ed91c38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

veadk/tracing/base_tracer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ async def on_user_message_callback(
7272

7373
span.set_attribute("agent.name", agent_name)
7474
span.set_attribute("invoke.branch", invoke_branch)
75+
span.set_attribute("gen_ai.system", "veadk")
7576

7677
logger.debug(
7778
f"Add attributes to {span_name}: app_name={current_session.app_name}, user_id={current_session.user_id}, session_id={current_session.id}, agent_name={agent_name}, invoke_branch={invoke_branch}"
@@ -180,7 +181,7 @@ def tracer_hook_after_model(
180181
agent_name = callback_context.agent_name
181182
attributes["agent.name"] = agent_name
182183
attributes["app.name"] = app_name
183-
184+
attributes["gen_ai.system"] = "veadk"
184185
# prompt
185186
user_content = callback_context.user_content
186187
role = None
@@ -271,6 +272,7 @@ def tracer_hook_after_tool(
271272
"agent.name": agent_name,
272273
"app.name": app_name,
273274
"tool.name": tool_name,
275+
"gen_ai.system": "veadk",
274276
}
275277

276278
# Set all attributes at once if possible, else fallback to individual

0 commit comments

Comments
 (0)