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

camel-jbang - Using microprofile-metrics should setup registry if none found

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.18.0
    • camel-jbang
    • None
    • Unknown

    Description

      So you can quickly try and run

      uri: microprofile-metrics:counter:messages

      And not have an error

      Caused by: java.lang.IllegalStateException: No usable MetricRegistry has been configured
      at org.apache.camel.component.microprofile.metrics.MicroProfileMetricsHelper.getMetricRegistry(MicroProfileMetricsHelper.java:112)
      at org.apache.camel.component.microprofile.metrics.MicroProfileMetricsComponent.createEndpoint(MicroProfileMetricsComponent.java:39)
      at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:171)
      at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:951)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment