Tag spring.batch.job.active metric with the job name

Resolves #3750
This commit is contained in:
Mahmoud Ben Hassine
2020-07-24 12:20:43 +02:00
parent 3a09efee5e
commit ac485ee326
2 changed files with 4 additions and 2 deletions

View File

@@ -162,6 +162,7 @@ public class BatchMetricsTests {
try {
Metrics.globalRegistry.get("spring.batch.job.active")
.tag("name", "job")
.longTaskTimer();
} catch (Exception e) {
fail("There should be a meter of type LONG_TASK_TIMER named spring.batch.job.active" +