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

Use Counter in Caffeine's dropwizard metrics

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.22.0
    • camel-caffeine
    • None
    • Unknown

    Description

      https://github.com/apache/camel/blob/5a40fa03ad1aa951457a04227ac00a7f6450676c/components/camel-caffeine/src/test/java/org/apache/camel/component/caffeine/cache/MetricsStatsCounter.java This code is seemingly copied from the Caffeine's exemplary code, which used to use Meter class from Dropwizard Metrics. Recently it was concluded that Counter is more appropriate: https://github.com/ben-manes/caffeine/issues/235

      I'm not sure Counter is better than Meter in Camel as well, but at least it should be considered.

      Attachments

        Activity

          People

            acosentino Andrea Cosentino
            leventov Roman Leventov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: