mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
feat: add trace URL in workflow runs
This commit is contained in:
parent
085a88308a
commit
cdf68533ad
5 changed files with 55 additions and 20 deletions
|
|
@ -109,6 +109,13 @@ def register_task_event_handler(
|
|||
|
||||
gathered_context = await engine.get_gathered_context()
|
||||
|
||||
# Add trace URL if available (must be done before conversation tracing ends)
|
||||
if task.turn_trace_observer:
|
||||
trace_url = task.turn_trace_observer.get_trace_url()
|
||||
if trace_url:
|
||||
gathered_context["trace_url"] = trace_url
|
||||
logger.debug(f"Added trace URL to gathered_context: {trace_url}")
|
||||
|
||||
# also consider existing gathered context in workflow_run
|
||||
gathered_context = {**gathered_context, **workflow_run.gathered_context}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue