dify/api/core/workflow/nodes/tool
GareArc 915b4ce840
feat: Add parent trace context propagation for workflow-as-tool hierarchy
Enables distributed tracing for nested workflows across all trace providers
(Langfuse, LangSmith, community providers). When a workflow invokes another
workflow via workflow-as-tool, the child workflow now includes parent context
attributes that allow trace systems to reconstruct the full execution tree.

Changes:
- Add parent_trace_context field to WorkflowTool
- Set parent context in tool node when invoking workflow-as-tool
- Extract and pass parent context through app generator

This is a community enhancement (ungated) that improves distributed tracing
for all users. Parent context includes: trace_id, node_execution_id,
workflow_run_id, and app_id.
2026-01-29 20:05:11 -08:00
..
__init__.py feat/enhance the multi-modal support (#8818) 2024-10-21 10:43:49 +08:00
entities.py minor fix: fix error messages (#23081) 2025-07-29 10:59:43 +08:00
exc.py refactor(tool-node): introduce specific exceptions for tool node errors (#10357) 2024-11-07 14:02:38 +08:00
tool_node.py feat: Add parent trace context propagation for workflow-as-tool hierarchy 2026-01-29 20:05:11 -08:00