File tree Expand file tree Collapse file tree 3 files changed +15
-0
lines changed
Expand file tree Collapse file tree 3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -110,3 +110,14 @@ message RetryPolicy {
110110 // this is not a substring match, the error *type* (not message) must match exactly.
111111 repeated string non_retryable_error_types = 5 ;
112112}
113+
114+ // Metadata relevant for metering purposes
115+ message MeteringMetadata {
116+ // Count of local activities which have begun an execution attempt during this workflow task,
117+ // and whose first attempt occurred in some previous task. This is used for metering
118+ // purposes, and does not affect workflow state.
119+ //
120+ // (-- api-linter: core::0141::forbidden-types=disabled
121+ // aip.dev/not-precedent: Negative values make no sense to represent. --)
122+ uint32 nonfirst_local_activity_execution_attempts = 13 ;
123+ }
Original file line number Diff line number Diff line change @@ -199,6 +199,8 @@ message WorkflowTaskCompletedEventAttributes {
199199 // Data the SDK wishes to record for itself, but server need not interpret, and does not
200200 // directly impact workflow state.
201201 temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 6 ;
202+ // Local usage data sent during workflow task completion and recorded here for posterity
203+ temporal.api.common.v1.MeteringMetadata metering_metadata = 13 ;
202204}
203205
204206message WorkflowTaskTimedOutEventAttributes {
Original file line number Diff line number Diff line change @@ -320,6 +320,8 @@ message RespondWorkflowTaskCompletedRequest {
320320 // Data the SDK wishes to record for itself, but server need not interpret, and does not
321321 // directly impact workflow state.
322322 temporal.api.sdk.v1.WorkflowTaskCompletedMetadata sdk_metadata = 12 ;
323+ // Local usage data collected for metering
324+ temporal.api.common.v1.MeteringMetadata metering_metadata = 13 ;
323325}
324326
325327message RespondWorkflowTaskCompletedResponse {
You can’t perform that action at this time.
0 commit comments