fix: set workflow.id attribute again

Signed-off-by: Casper Guldbech Nielsen <scni@novonordisk.com>
This commit is contained in:
Casper Guldbech Nielsen 2025-05-06 06:13:47 -07:00
parent fad0bfa078
commit 6e1c1ee461
No known key found for this signature in database
GPG Key ID: B004583B52B9A446
1 changed files with 2 additions and 0 deletions

View File

@ -406,7 +406,9 @@ class AssistantAgent(AgentWorkflowBase):
Raises:
AgentError: If the tool call is malformed or execution fails.
"""
span = trace.get_current_span()
span.set_attribute("workflow.id", instance_id)
function_details = tool_call.get("function", {})
function_name = function_details.get("name")