When an orchestration schedules an activity or sub-orchestration, the input payload references are correctly saved to the NewEvents or NewTasks tables, but not to the History table. This makes debugging trickier because you can't know what the inputs for activities or sub-orchestrations are when looking at an orchestration's history.
The workaround is to set TaskHubWorker.TaskOrchestrationDispatcher.IncludeParameters to true. However, this API is not at all discoverable and is very poorly designed. At the time of writing, it also exposes a data duplication bug, tracked here: https://github.com/microsoft/durabletask-mssql/issues/84.
Ideally, by default, input payloads for activities and sub-orchestrations should be tracked in the history database.
When an orchestration schedules an activity or sub-orchestration, the input payload references are correctly saved to the
NewEvents
orNewTasks
tables, but not to theHistory
table. This makes debugging trickier because you can't know what the inputs for activities or sub-orchestrations are when looking at an orchestration's history.The workaround is to set
TaskHubWorker.TaskOrchestrationDispatcher.IncludeParameters
totrue
. However, this API is not at all discoverable and is very poorly designed. At the time of writing, it also exposes a data duplication bug, tracked here: https://github.com/microsoft/durabletask-mssql/issues/84.Ideally, by default, input payloads for activities and sub-orchestrations should be tracked in the history database.