@@ -193,7 +193,7 @@ message EntityOperationCalledEvent {
193193}
194194
195195message EntityLockRequestedEvent {
196- string criticalSectionId = 1 ;
196+ string criticalSectionId = 1 ;
197197 repeated string lockSet = 2 ;
198198 int32 position = 3 ;
199199 google.protobuf.StringValue parentInstanceId = 4 ; // used only within messages, null in histories
@@ -218,7 +218,7 @@ message EntityUnlockSentEvent {
218218message EntityLockGrantedEvent {
219219 string criticalSectionId = 1 ;
220220}
221-
221+
222222message HistoryEvent {
223223 int32 eventId = 1 ;
224224 google.protobuf.Timestamp timestamp = 2 ;
@@ -245,8 +245,8 @@ message HistoryEvent {
245245 ExecutionResumedEvent executionResumed = 22 ;
246246 EntityOperationSignaledEvent entityOperationSignaled = 23 ;
247247 EntityOperationCalledEvent entityOperationCalled = 24 ;
248- EntityOperationCompletedEvent entityOperationCompleted = 25 ;
249- EntityOperationFailedEvent entityOperationFailed = 26 ;
248+ EntityOperationCompletedEvent entityOperationCompleted = 25 ;
249+ EntityOperationFailedEvent entityOperationFailed = 26 ;
250250 EntityLockRequestedEvent entityLockRequested = 27 ;
251251 EntityLockGrantedEvent entityLockGranted = 28 ;
252252 EntityUnlockSentEvent entityUnlockSent = 29 ;
@@ -258,13 +258,15 @@ message ScheduleTaskAction {
258258 google.protobuf.StringValue version = 2 ;
259259 google.protobuf.StringValue input = 3 ;
260260 map <string , string > tags = 4 ;
261+ TraceContext parentTraceContext = 5 ;
261262}
262263
263264message CreateSubOrchestrationAction {
264265 string instanceId = 1 ;
265266 string name = 2 ;
266267 google.protobuf.StringValue version = 3 ;
267268 google.protobuf.StringValue input = 4 ;
269+ TraceContext parentTraceContext = 5 ;
268270}
269271
270272message CreateTimerAction {
@@ -314,6 +316,11 @@ message OrchestratorAction {
314316 }
315317}
316318
319+ message OrchestrationTraceContext {
320+ google.protobuf.StringValue spanID = 1 ;
321+ google.protobuf.Timestamp spanStartTime = 2 ;
322+ }
323+
317324message OrchestratorRequest {
318325 string instanceId = 1 ;
319326 google.protobuf.StringValue executionId = 2 ;
@@ -322,6 +329,8 @@ message OrchestratorRequest {
322329 OrchestratorEntityParameters entityParameters = 5 ;
323330 bool requiresHistoryStreaming = 6 ;
324331 map <string , google.protobuf.Value > properties = 7 ;
332+
333+ OrchestrationTraceContext orchestrationTraceContext = 8 ;
325334}
326335
327336message OrchestratorResponse {
@@ -333,6 +342,8 @@ message OrchestratorResponse {
333342 // The number of work item events that were processed by the orchestrator.
334343 // This field is optional. If not set, the service should assume that the orchestrator processed all events.
335344 google.protobuf.Int32Value numEventsProcessed = 5 ;
345+
346+ OrchestrationTraceContext orchestrationTraceContext = 6 ;
336347}
337348
338349message CreateInstanceRequest {
@@ -507,7 +518,7 @@ message SignalEntityRequest {
507518}
508519
509520message SignalEntityResponse {
510- // no payload
521+ // no payload
511522}
512523
513524message GetEntityRequest {
@@ -682,16 +693,16 @@ service TaskHubSidecarService {
682693
683694 // Waits for an orchestration instance to reach a running or completion state.
684695 rpc WaitForInstanceStart (GetInstanceRequest ) returns (GetInstanceResponse );
685-
696+
686697 // Waits for an orchestration instance to reach a completion state (completed, failed, terminated, etc.).
687698 rpc WaitForInstanceCompletion (GetInstanceRequest ) returns (GetInstanceResponse );
688699
689700 // Raises an event to a running orchestration instance.
690701 rpc RaiseEvent (RaiseEventRequest ) returns (RaiseEventResponse );
691-
702+
692703 // Terminates a running orchestration instance.
693704 rpc TerminateInstance (TerminateRequest ) returns (TerminateResponse );
694-
705+
695706 // Suspends a running orchestration instance.
696707 rpc SuspendInstance (SuspendRequest ) returns (SuspendResponse );
697708
@@ -776,7 +787,7 @@ message CompleteTaskResponse {
776787}
777788
778789message HealthPing {
779- // No payload
790+ // No payload
780791}
781792
782793message StreamInstanceHistoryRequest {
@@ -789,4 +800,4 @@ message StreamInstanceHistoryRequest {
789800
790801message HistoryChunk {
791802 repeated HistoryEvent events = 1 ;
792- }
803+ }
0 commit comments