dify/api/core
GareArc 4d47339ce6
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-02-05 20:19:29 -08:00
..
agent refactor(telemetry): migrate to type-safe enum-based event routing with centralized enterprise filtering 2026-02-05 20:15:12 -08:00
app feat: Add parent trace context propagation for workflow-as-tool hierarchy 2026-02-05 20:19:29 -08:00
base feat: knowledge pipeline (#25360) 2025-09-18 12:49:10 +08:00
callback_handler refactor(telemetry): migrate to type-safe enum-based event routing with centralized enterprise filtering 2026-02-05 20:15:12 -08:00
datasource refactor: replace request.args.get with Pydantic BaseModel validation (#31104) 2026-01-27 10:48:42 +08:00
db fix(db): parameterize sessionmaker with Session (#30612) 2026-01-06 15:23:50 +08:00
entities revert: revert human input relevant code (#31766) 2026-01-30 19:18:49 +08:00
errors chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
extension change all to httpx (#26119) 2025-10-10 23:41:16 +08:00
external_data_tool chore: add ast-grep rule to convert Optional[T] to T | None (#25560) 2025-09-15 13:06:33 +08:00
file refactor(typing): Fixup typing A2 - workflow engine & nodes (#31723) 2026-01-31 18:00:56 +09:00
helper refactor(typing): Fixup typing A2 - workflow engine & nodes (#31723) 2026-01-31 18:00:56 +09:00
llm_generator refactor(telemetry): migrate to type-safe enum-based event routing with centralized enterprise filtering 2026-02-05 20:15:12 -08:00
logging feat(enterprise): Add OTEL telemetry with slim traces, metrics, and structured logs 2026-02-05 20:12:28 -08:00
mcp chore(typing): reduce ty excludes for A1 (#31721) 2026-01-30 02:38:57 +08:00
memory refactor:Decouple Domain Models from Direct Database Access (#27316) 2025-10-28 09:59:30 +08:00
model_runtime fix(i18n): improve Chinese translation of Max Tokens (#31771) 2026-01-30 20:19:35 +08:00
moderation refactor(telemetry): migrate to type-safe enum-based event routing with centralized enterprise filtering 2026-02-05 20:15:12 -08:00
ops refactor(telemetry): migrate to type-safe enum-based event routing with centralized enterprise filtering 2026-02-05 20:15:12 -08:00
plugin revert: revert human input relevant code (#31766) 2026-01-30 19:18:49 +08:00
prompt Feat/support multimodal embedding (#29115) 2025-12-09 14:41:46 +08:00
rag refactor(telemetry): migrate to type-safe enum-based event routing with centralized enterprise filtering 2026-02-05 20:15:12 -08:00
repositories revert: revert human input relevant code (#31766) 2026-01-30 19:18:49 +08:00
schemas refactor(typing): Fixup typing A2 - workflow engine & nodes (#31723) 2026-01-31 18:00:56 +09:00
telemetry fix(telemetry): correct enterprise-only trace filtering logic 2026-02-05 20:15:12 -08:00
tools feat: Add parent trace context propagation for workflow-as-tool hierarchy 2026-02-05 20:19:29 -08:00
trigger fix(redis): Redis Cluster eval errors by adding hash tags to trigger debug keys (#31701) 2026-01-30 16:05:02 +08:00
variables refactor(variables): clarify base vs union type naming (#30634) 2026-01-13 23:39:34 +09:00
workflow feat(telemetry): add input/output token split to enterprise OTEL traces 2026-02-05 20:12:30 -08:00
__init__.py Fix basedpyright type errors (#25435) 2025-09-10 01:54:26 +08:00
hosting_configuration.py feat: credit pool (#30720) 2026-01-08 13:17:30 +08:00
indexing_runner.py refactor: port api/controllers/console/datasets/datasets_document.py api/controllers/service_api/app/annotation.py api/core/app/app_config/easy_ui_based_app/agent/manager.py api/core/app/apps/pipeline/pipeline_generator.py api/core/workflow/nodes/knowledge_retrieval/knowledge_retrieval_node.py to match case (#31832) 2026-02-02 19:07:30 +09:00
model_manager.py Feat/support multimodal embedding (#29115) 2025-12-09 14:41:46 +08:00
provider_manager.py feat: credit pool (#30720) 2026-01-08 13:17:30 +08:00