You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ji...@apache.org on 2024/03/12 09:47:14 UTC
(camel-quarkus) branch camel-main updated: Fixed micrometer because of CAMEL-20461
This is an automated email from the ASF dual-hosted git repository.
jiriondrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/camel-main by this push:
new cfc66baccf Fixed micrometer because of CAMEL-20461
cfc66baccf is described below
commit cfc66baccf6997339ca75ead79085f9cdc3b83be
Author: JiriOndrusek <on...@gmail.com>
AuthorDate: Tue Mar 12 10:42:11 2024 +0100
Fixed micrometer because of CAMEL-20461
---
.../camel/quarkus/component/micrometer/CamelMicrometerRecorder.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/extensions/micrometer/runtime/src/main/java/org/apache/camel/quarkus/component/micrometer/CamelMicrometerRecorder.java b/extensions/micrometer/runtime/src/main/java/org/apache/camel/quarkus/component/micrometer/CamelMicrometerRecorder.java
index ddc5584c37..d7e7f2a9bc 100644
--- a/extensions/micrometer/runtime/src/main/java/org/apache/camel/quarkus/component/micrometer/CamelMicrometerRecorder.java
+++ b/extensions/micrometer/runtime/src/main/java/org/apache/camel/quarkus/component/micrometer/CamelMicrometerRecorder.java
@@ -59,7 +59,9 @@ public class CamelMicrometerRecorder {
@Override
public void configure(CamelContext camelContext) {
if (config.enableRoutePolicy) {
- camelContext.addRoutePolicyFactory(new MicrometerRoutePolicyFactory());
+ MicrometerRoutePolicyFactory mrpf = new MicrometerRoutePolicyFactory();
+ mrpf.setCamelContext(camelContext);
+ camelContext.addRoutePolicyFactory(mrpf);
}
ManagementStrategy managementStrategy = camelContext.getManagementStrategy();