Python: Tracing for workflows (#480)

* workflow tracing design doc

* add tracing implementation for workflow

* fix bug caused by double wrapping of sub workflow request

* add unit tests for tracing

* add documentation for workflow tracing

* remove unnecessary file

* update aspire command

* fix tests

* proper serialization of subworkflows and add workflow.definition

* add serialization test

* fix subworkflow serialization

* workflow_id --> id

* update workflow sample to address comments

* update naming; use costant

* use NoOpTracer instead of nullcontext

* use span event instead of attribtutes for status

* fix typing

* add workflow.build span

* rename methods for clarity

* ensure all source trace contexts are propagated in fan in
This commit is contained in:
Eric Zhu
2025-08-26 22:09:16 -07:00
committed by GitHub
Unverified
parent 78125f019a
commit 379e3b9a00
14 changed files with 1533 additions and 140 deletions
@@ -2,3 +2,4 @@ CONNECTION_STRING="..."
OTLP_ENDPOINT="http://localhost:4317/"
AGENT_FRAMEWORK_GENAI_ENABLE_OTEL_DIAGNOSTICS=true
AGENT_FRAMEWORK_GENAI_ENABLE_OTEL_DIAGNOSTICS_SENSITIVE=true
AGENT_FRAMEWORK_WORKFLOW_ENABLE_OTEL_DIAGNOSTICS=true