Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: correlation test fail except for external event with extended session #430

Merged
merged 7 commits into from
Nov 2, 2020
4 changes: 3 additions & 1 deletion src/DurableTask.Core/TaskHubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,8 @@ async Task<OrchestrationInstance> InternalCreateOrchestrationInstanceWithRaisedE
};

this.logHelper.SchedulingOrchestration(startedEvent);

CorrelationTraceClient.Propagate(() => CreateAndTrackDependencyTelemetry(requestTraceContext));

// Raised events and create orchestration calls use different methods so get handled separately
await this.ServiceClient.CreateTaskOrchestrationAsync(startMessage, dedupeStatuses);
Expand All @@ -559,10 +561,10 @@ async Task<OrchestrationInstance> InternalCreateOrchestrationInstanceWithRaisedE
},
Event = eventRaisedEvent,
};

await this.ServiceClient.SendTaskOrchestrationMessageAsync(eventMessage);
}

CorrelationTraceClient.Propagate(() => CreateAndTrackDependencyTelemetry(requestTraceContext));

return orchestrationInstance;
}
Expand Down