Skip to content

Commit

Permalink
Fix updateRegistry bug to pass Counter only for DsType.Rate (#594)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpalriwal-Netflix authored Oct 17, 2024
1 parent a788f2b commit 52e5077
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ class PublishQueue(

def updateRegistry(dp: AtlasDatapoint, cwDatapoint: CloudWatchDatapoint): Unit = {
val atlasDp = toDoubleValue(dp)
registryPublishClient.updateCounter(atlasDp.id, atlasDp.value)
if (dp.dsType == DsType.Rate) {
registryPublishClient.updateCounter(atlasDp.id, atlasDp.value)
registry
.counter(
updateSelfMetrics(dp, cwDatapoint)
Expand Down

0 comments on commit 52e5077

Please sign in to comment.