@@ -2275,6 +2275,7 @@ const (
22752275
22762276 DomainReplicationQueueSizeGauge
22772277 DomainReplicationQueueSizeErrorCount
2278+ DomainCacheUpdateLatency
22782279
22792280 ParentClosePolicyProcessorSuccess
22802281 ParentClosePolicyProcessorFailures
@@ -3022,6 +3023,7 @@ var MetricDefs = map[ServiceIdx]map[int]metricDefinition{
30223023 CadenceShardFailureGauge : {metricName : "cadence_shard_failure" , metricType : Gauge },
30233024 DomainReplicationQueueSizeGauge : {metricName : "domain_replication_queue_size" , metricType : Gauge },
30243025 DomainReplicationQueueSizeErrorCount : {metricName : "domain_replication_queue_failed" , metricType : Counter },
3026+ DomainCacheUpdateLatency : {metricName : "domain_cache_update_latency" , metricType : Histogram , buckets : DomainCacheUpdateBuckets },
30253027 ParentClosePolicyProcessorSuccess : {metricName : "parent_close_policy_processor_requests" , metricType : Counter },
30263028 ParentClosePolicyProcessorFailures : {metricName : "parent_close_policy_processor_errors" , metricType : Counter },
30273029
@@ -3620,6 +3622,12 @@ var ResponseRowSizeBuckets = append(
36203622 tally .MustMakeExponentialValueBuckets (1 , 2 , 17 )... , // 1..65536
36213623)
36223624
3625+ // DomainCacheUpdateBuckets contain metric results for domain update operations
3626+ var DomainCacheUpdateBuckets = append (
3627+ tally.ValueBuckets {0 }, // need an explicit 0 or zero is reported as 1
3628+ tally .MustMakeExponentialValueBuckets (1 , 2 , 17 )... , // 1..65536
3629+ )
3630+
36233631// ResponsePayloadSizeBuckets contains buckets for tracking the size of the payload returned per persistence operation
36243632var ResponsePayloadSizeBuckets = append (
36253633 tally.ValueBuckets {0 }, // need an explicit 0 or zero is reported as 1
0 commit comments