Skip to content

Commit

Permalink
Add request ID to NexusOperationStarted event (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergundy authored Jul 10, 2024
1 parent 0d34df3 commit fc7a078
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openapi/openapiv2.json
Original file line number Diff line number Diff line change
Expand Up @@ -8511,6 +8511,10 @@
"operationId": {
"type": "string",
"description": "The operation ID returned by the Nexus handler in the response to the StartOperation request.\nThis ID is used when canceling the operation."
},
"requestId": {
"type": "string",
"description": "The request ID allocated at schedule time."
}
},
"description": "Event marking an asynchronous operation was started by the responding Nexus handler.\nIf the operation completes synchronously, this event is not generated.\nIn rare situations, such as request timeouts, the service may fail to record the actual start time and will fabricate\nthis event upon receiving the operation completion via callback."
Expand Down
3 changes: 3 additions & 0 deletions openapi/openapiv3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6271,6 +6271,9 @@ components:
description: |-
The operation ID returned by the Nexus handler in the response to the StartOperation request.
This ID is used when canceling the operation.
requestId:
type: string
description: The request ID allocated at schedule time.
description: |-
Event marking an asynchronous operation was started by the responding Nexus handler.
If the operation completes synchronously, this event is not generated.
Expand Down
3 changes: 3 additions & 0 deletions temporal/api/history/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -839,6 +839,9 @@ message NexusOperationStartedEventAttributes {
// The operation ID returned by the Nexus handler in the response to the StartOperation request.
// This ID is used when canceling the operation.
string operation_id = 3;

// The request ID allocated at schedule time.
string request_id = 4;
}

// Nexus operation completed successfully.
Expand Down

0 comments on commit fc7a078

Please sign in to comment.