lburgazzoli commented on a change in pull request #660: The MicroProfile test 
fails if message history is turned off
URL: https://github.com/apache/camel-quarkus/pull/660#discussion_r370094527
 
 

 ##########
 File path: 
extensions/microprofile-metrics/runtime/src/main/java/org/apache/camel/quarkus/component/microprofile/metrics/runtime/CamelMicroProfileMetricsRecorder.java
 ##########
 @@ -61,4 +63,24 @@ public void 
configureCamelContext(CamelMicroProfileMetricsConfig config,
             managementStrategy.addEventNotifier(new 
MicroProfileMetricsCamelContextEventNotifier());
         }
     }
+
+    private static class MicroProfileMetricsContextConfigurerListener extends 
MainListenerSupport {
+        private static final Logger LOGGER = 
Logger.getLogger(MicroProfileMetricsContextConfigurerListener.class);
+        private final CamelMicroProfileMetricsConfig config;
+
+        public 
MicroProfileMetricsContextConfigurerListener(CamelMicroProfileMetricsConfig 
config) {
+            this.config = config;
+        }
+
+        @Override
+        public void configure(CamelContext camelContext) {
+            if (camelContext.isMessageHistory() && 
config.enableMessageHistory) {
 
 Review comment:
   @jamesnetherton I've simplified it a bit, does it look better now ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to