RED-6264: Corrected metric name and added clarifying comment

This commit is contained in:
Viktor Seifert 2023-03-02 14:42:14 +01:00
parent c6837d41af
commit f9d61a57c1

View File

@ -115,7 +115,9 @@ public class AnalyzeService {
this.importedRedactionService = importedRedactionService;
this.sectionFinder = sectionFinder;
FunctionTimer.builder("redactmanager_reanalyze.pagewise", //
// This is just here as an example of how to do a timer with a counter.
// For a full implementation this should be moved to a common helper class.
FunctionTimer.builder("redactmanager_analyze.pagewise", //
analyzeCounter, //
PagewiseCounter::getTotalPageCount, //
PagewiseCounter::getTotalTimeMillis, //