diff --git a/src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs b/src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs index b5b5736a1..ebc4eb1a1 100644 --- a/src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs +++ b/src/Worker.Extensions.DurableTask/FunctionsDurableTaskClient.cs @@ -78,7 +78,7 @@ public override Task ScheduleNewOrchestrationInstanceAsync( CancellationToken cancellation = default) { Activity? currActivity = Activity.Current; - if (currActivity != null) + if (options == null && options?.ParentTraceId == null && currActivity != null) { options = new StartOrchestrationOptions(ParentTraceId: currActivity?.Id?.ToString()); }