mirror of https://github.com/dapr/dapr-agents.git
fix: set workflow.id attribute again
Signed-off-by: Casper Guldbech Nielsen <scni@novonordisk.com>
This commit is contained in:
parent
fad0bfa078
commit
6e1c1ee461
|
@ -406,7 +406,9 @@ class AssistantAgent(AgentWorkflowBase):
|
||||||
Raises:
|
Raises:
|
||||||
AgentError: If the tool call is malformed or execution fails.
|
AgentError: If the tool call is malformed or execution fails.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
span = trace.get_current_span()
|
span = trace.get_current_span()
|
||||||
|
span.set_attribute("workflow.id", instance_id)
|
||||||
|
|
||||||
function_details = tool_call.get("function", {})
|
function_details = tool_call.get("function", {})
|
||||||
function_name = function_details.get("name")
|
function_name = function_details.get("name")
|
||||||
|
|
Loading…
Reference in New Issue