Update Task to resolve Micromenter 2.0.x upgrade issue.

This will resolve the current issue, but improvements to Task's use of Micrometer 2.0 are coming in a upcoming PR
This commit is contained in:
Glenn Renfro
2022-03-07 14:14:26 -05:00
parent 64fe51901c
commit 300c767710

View File

@@ -116,7 +116,7 @@ public class TaskMetrics {
(this.exception == null) ? "none"
: this.exception.getClass().getSimpleName())
.tag(TASK_STATUS_TAG,
(this.exception == null) ? STATUS_SUCCESS : STATUS_FAILURE));
(this.exception == null) ? STATUS_SUCCESS : STATUS_FAILURE).register(Metrics.globalRegistry));
this.taskSample = null;
}