Skip to content

Commit

Permalink
CAA-2346: Fix metrics for cancelling tasks (#222)
Browse files Browse the repository at this point in the history
* Fix metric reporting

* Fix metric reporting
  • Loading branch information
WiserSep authored Feb 25, 2025
1 parent 44dcda3 commit 8239b86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=1.50.0
version=1.50.1
org.gradle.internal.http.socketTimeout=120000
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,12 @@ protected static class MetricHandle {
}

public void registerTaskCancelled(String taskType) {
meterCache.counter(METRIC_TASKS_CANCELLED_COUNT, TagsSet.of(TAG_BUCKET_ID, resolveBucketId(null), TAG_TASK_TYPE, taskType))
meterCache.counter(METRIC_TASKS_CANCELLED_COUNT, TagsSet.of(TAG_TASK_TYPE, taskType))
.increment();
}

public void registerTaskCancellationFailure(String taskType) {
meterCache.counter(METRIC_TASKS_FAILED_CANCELLATION_COUNT, TagsSet.of(TAG_BUCKET_ID, resolveBucketId(null), TAG_TASK_TYPE, taskType))
meterCache.counter(METRIC_TASKS_FAILED_CANCELLATION_COUNT, TagsSet.of(TAG_TASK_TYPE, taskType))
.increment();
}
}

0 comments on commit 8239b86

Please sign in to comment.