File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
service/history/execution Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -2170,7 +2170,11 @@ func (e *mutableStateBuilder) tryDispatchActivityTask(
21702170 ai * persistence.ActivityInfo ,
21712171 ctx context.Context ,
21722172) bool {
2173- e .metricsClient .Scope (metrics .HistoryScheduleDecisionTaskScope ).IncCounter (metrics .DecisionTypeScheduleActivityDispatchCounter )
2173+ taggedScope := e .metricsClient .Scope (metrics .HistoryScheduleDecisionTaskScope ).Tagged (
2174+ metrics .DomainTag (e .domainEntry .GetInfo ().Name ),
2175+ metrics .WorkflowTypeTag (e .GetWorkflowType ().Name ),
2176+ metrics .TaskListTag (ai .TaskList ))
2177+ taggedScope .IncCounter (metrics .DecisionTypeScheduleActivityDispatchCounter )
21742178 err := e .shard .GetService ().GetMatchingClient ().AddActivityTask (ctx , & types.AddActivityTaskRequest {
21752179 DomainUUID : e .executionInfo .DomainID ,
21762180 SourceDomainUUID : e .domainEntry .GetInfo ().ID ,
@@ -2189,9 +2193,8 @@ func (e *mutableStateBuilder) tryDispatchActivityTask(
21892193 ScheduledTimestampOfThisAttempt : common .Int64Ptr (ai .ScheduledTime .UnixNano ()),
21902194 },
21912195 })
2192-
21932196 if err == nil {
2194- e . metricsClient . Scope ( metrics . HistoryScheduleDecisionTaskScope ) .IncCounter (metrics .DecisionTypeScheduleActivityDispatchSucceedCounter )
2197+ taggedScope .IncCounter (metrics .DecisionTypeScheduleActivityDispatchSucceedCounter )
21952198 return true
21962199 }
21972200 return false
You can’t perform that action at this time.
0 commit comments