1648
// Those attributed-only keys are not zeroed here, which could leave stale gauge values for
1649
// priority keys that existed only through attribution.
1650
>
func (pm *taskQueuePartitionManagerImpl) emitZeroLogicalBacklogForQueue(version PhysicalTaskQueueVersion, pq physicalTaskQueueManager) {
task_queue_partition_manager.go
1651
>
if !pm.config.BreakdownMetricsByTaskQueue() || !pm.config.BreakdownMetricsByPartition() {
1652
return
1653
}
1655
>
handler := pm.metricsHandler.WithTags(
1656
>
metrics.WorkerVersionTag(version.MetricsTagValue(), pm.config.BreakdownMetricsByBuildID()),
1657
>
metrics.WorkerDeploymentNameTag(deploymentName, pm.config.BreakdownMetricsByBuildID()),
1658
>
metrics.WorkerDeploymentBuildIDTag(buildID, pm.config.BreakdownMetricsByBuildID()),
1659
>
)
1660
>
for pri := range pq.GetStatsByPriority(false) {
1661
>
metrics.ApproximateBacklogCount.With(handler).Record(0, metrics.MatchingTaskPriorityTag(pri))
1662
>
}
1663
>
metrics.ApproximateBacklogAgeSeconds.With(handler).Record(0)
1664
}
1665