Fix: Cast to str for span attribute

Signed-off-by: Casper Guldbech Nielsen <scni@novonordisk.com>
This commit is contained in:
Casper Guldbech Nielsen 2025-05-03 22:18:11 +02:00
parent 82df6b3919
commit b80b75efec
No known key found for this signature in database
GPG Key ID: B004583B52B9A446
1 changed files with 2 additions and 2 deletions

View File

@ -110,9 +110,9 @@ class LLMOrchestrator(OrchestratorWorkflowBase):
# Step 0: Retrieve iteration messages
task = message.get("task")
span.set_attribute["message.task", task]
span.set_attribute["message.task", str(task)]
iteration = message.get("iteration")
span.set_attribute["workflow.iteration", iteration]
span.set_attribute["workflow.iteration", str(iteration)]
# Step 1:
# Ensure 'instances' and the instance_id entry exist