Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9342

Metrics component should log at debug level

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.16.2, 2.17.0
    • Component/s: camel-metrics
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      The metrics component does the following:

       final Slf4jReporter reporter = Slf4jReporter.forRegistry(registry)
                      .outputTo(LOG)
                      .convertRatesTo(TimeUnit.SECONDS)
                      .convertDurationsTo(TimeUnit.MILLISECONDS)
                      .build();
      

      This results in quite a bit of noise in application log files, as some (not particularly useful) log output is generated each time the metrics thread runs. It'd be better to force the log level for this output to DEBUG.

      Adding something like the following should be sufficient:

      .withLoggingLevel(Slf4jReporter.LoggingLevel.DEBUG)
      

        Attachments

          Activity

            People

            • Assignee:
              acosentino Andrea Cosentino
              Reporter:
              jamesnetherton James Netherton
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: