@@ -53,6 +53,10 @@ type (
53
53
ServiceIdx int
54
54
)
55
55
56
+ func (s scopeDefinition ) GetOperationString () string {
57
+ return s .operation
58
+ }
59
+
56
60
// MetricTypes which are supported
57
61
const (
58
62
Counter MetricType = iota
@@ -1070,7 +1074,7 @@ const (
1070
1074
// -- Operation scopes for History service --
1071
1075
const (
1072
1076
// HistoryStartWorkflowExecutionScope tracks StartWorkflowExecution API calls received by service
1073
- HistoryStartWorkflowExecutionScope = iota + NumCommonScopes
1077
+ HistoryStartWorkflowExecutionScope = iota + NumFrontendScopes
1074
1078
// HistoryRecordActivityTaskHeartbeatScope tracks RecordActivityTaskHeartbeat API calls received by service
1075
1079
HistoryRecordActivityTaskHeartbeatScope
1076
1080
// HistoryRespondDecisionTaskCompletedScope tracks RespondDecisionTaskCompleted API calls received by service
@@ -1358,7 +1362,7 @@ const (
1358
1362
// -- Operation scopes for Matching service --
1359
1363
const (
1360
1364
// PollForDecisionTaskScope tracks PollForDecisionTask API calls received by service
1361
- MatchingPollForDecisionTaskScope = iota + NumCommonScopes
1365
+ MatchingPollForDecisionTaskScope = iota + NumHistoryScopes
1362
1366
// PollForActivityTaskScope tracks PollForActivityTask API calls received by service
1363
1367
MatchingPollForActivityTaskScope
1364
1368
// MatchingAddActivityTaskScope tracks AddActivityTask API calls received by service
@@ -1394,7 +1398,7 @@ const (
1394
1398
// -- Operation scopes for Worker service --
1395
1399
const (
1396
1400
// ReplicationScope is the scope used by all metric emitted by replicator
1397
- ReplicatorScope = iota + NumCommonScopes
1401
+ ReplicatorScope = iota + NumMatchingScopes
1398
1402
// DomainReplicationTaskScope is the scope used by domain task replication processing
1399
1403
DomainReplicationTaskScope
1400
1404
// ESProcessorScope is scope used by all metric emitted by esProcessor
@@ -1442,7 +1446,7 @@ const (
1442
1446
// -- Operation scopes for ShardDistributor service --
1443
1447
const (
1444
1448
// ShardDistributorGetShardOwnerScope tracks GetShardOwner API calls received by service
1445
- ShardDistributorGetShardOwnerScope = iota + NumCommonScopes
1449
+ ShardDistributorGetShardOwnerScope = iota + NumWorkerScopes
1446
1450
ShardDistributorHeartbeatScope
1447
1451
ShardDistributorAssignLoopScope
1448
1452
@@ -2404,6 +2408,8 @@ const (
2404
2408
// cluster forwarding policy metrics
2405
2409
ClusterForwardingPolicyRequests
2406
2410
2411
+ RingResolverError
2412
+
2407
2413
NumCommonMetrics // Needs to be last on this list for iota numbering
2408
2414
)
2409
2415
@@ -2708,12 +2714,13 @@ const (
2708
2714
VirtualQueueCountGauge
2709
2715
VirtualQueuePausedGauge
2710
2716
VirtualQueueRunningGauge
2717
+
2711
2718
NumHistoryMetrics
2712
2719
)
2713
2720
2714
2721
// Matching metrics enum
2715
2722
const (
2716
- PollSuccessPerTaskListCounter = iota + NumCommonMetrics
2723
+ PollSuccessPerTaskListCounter = iota + NumHistoryMetrics
2717
2724
PollTimeoutPerTaskListCounter
2718
2725
PollSuccessWithSyncPerTaskListCounter
2719
2726
LeaseRequestPerTaskListCounter
@@ -2791,12 +2798,13 @@ const (
2791
2798
IsolationGroupUpscale
2792
2799
IsolationGroupDownscale
2793
2800
PartitionDrained
2801
+
2794
2802
NumMatchingMetrics
2795
2803
)
2796
2804
2797
2805
// Worker metrics enum
2798
2806
const (
2799
- ReplicatorMessages = iota + NumCommonMetrics
2807
+ ReplicatorMessages = iota + NumMatchingMetrics
2800
2808
ReplicatorFailures
2801
2809
ReplicatorMessagesDropped
2802
2810
ReplicatorLatency
@@ -2880,12 +2888,13 @@ const (
2880
2888
DiagnosticsWorkflowStartedCount
2881
2889
DiagnosticsWorkflowSuccess
2882
2890
DiagnosticsWorkflowExecutionLatency
2891
+
2883
2892
NumWorkerMetrics
2884
2893
)
2885
2894
2886
2895
// ShardDistributor metrics enum
2887
2896
const (
2888
- ShardDistributorRequests = iota + NumCommonMetrics
2897
+ ShardDistributorRequests = iota + NumWorkerMetrics
2889
2898
ShardDistributorFailures
2890
2899
ShardDistributorLatency
2891
2900
ShardDistributorErrContextTimeoutCounter
@@ -3188,6 +3197,8 @@ var MetricDefs = map[ServiceIdx]map[int]metricDefinition{
3188
3197
ActiveClusterManagerLookupLatency : {metricName : "active_cluster_manager_lookup_latency" , metricType : Histogram , buckets : ExponentialDurationBuckets },
3189
3198
3190
3199
ClusterForwardingPolicyRequests : {metricName : "cluster_forwarding_policy_requests" , metricType : Counter },
3200
+
3201
+ RingResolverError : {metricName : "ring_resolver_error" , metricType : Counter },
3191
3202
},
3192
3203
History : {
3193
3204
TaskRequests : {metricName : "task_requests" , metricType : Counter },
0 commit comments