File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -3122,6 +3122,11 @@ func (wh *WorkflowHandler) createScheduleWorkflow(
31223122 return nil , err
31233123 }
31243124
3125+ if startWorkflow := request .GetSchedule ().GetAction ().GetStartWorkflow (); startWorkflow != nil {
3126+ metricsHandler := wh .metricsScope (ctx ).WithTags (metrics .HeaderCallsiteTag ("CreateSchedule" ))
3127+ metrics .HeaderSize .With (metricsHandler ).Record (int64 (startWorkflow .GetHeader ().Size ()))
3128+ }
3129+
31253130 // size limits will be validated on history. note that the start workflow request is
31263131 // embedded in the schedule, which is in the scheduler input. so if the scheduler itself
31273132 // doesn't exceed the limit, the started workflows should be safe as well.
@@ -3977,6 +3982,11 @@ func (wh *WorkflowHandler) updateScheduleWorkflow(
39773982 return nil , err
39783983 }
39793984
3985+ if startWorkflow := request .GetSchedule ().GetAction ().GetStartWorkflow (); startWorkflow != nil {
3986+ metricsHandler := wh .metricsScope (ctx ).WithTags (metrics .HeaderCallsiteTag ("UpdateSchedule" ))
3987+ metrics .HeaderSize .With (metricsHandler ).Record (int64 (startWorkflow .GetHeader ().Size ()))
3988+ }
3989+
39803990 input := & schedulespb.FullUpdateRequest {
39813991 Schedule : request .Schedule ,
39823992 SearchAttributes : request .SearchAttributes ,
You can’t perform that action at this time.
0 commit comments