This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel-examples.git
The following commit(s) were added to refs/heads/main by this push: new 307227f8 CAMEL-22392: camel-resilience4j - Add micrometer support 307227f8 is described below commit 307227f80aa43a046a42f4a053c6e120a22cb948 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Aug 30 16:09:19 2025 +0200 CAMEL-22392: camel-resilience4j - Add micrometer support --- main-micrometer/pom.xml | 4 ++++ main-micrometer/src/main/resources/application.properties | 3 +++ main-micrometer/src/main/resources/camel/demo.camel.yaml | 10 ++++++---- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/main-micrometer/pom.xml b/main-micrometer/pom.xml index 0e1b34f9..1ebfc917 100644 --- a/main-micrometer/pom.xml +++ b/main-micrometer/pom.xml @@ -67,6 +67,10 @@ <groupId>org.apache.camel</groupId> <artifactId>camel-timer</artifactId> </dependency> + <dependency> + <groupId>org.apache.camel</groupId> + <artifactId>camel-resilience4j-micrometer</artifactId> + </dependency> <dependency> <groupId>org.apache.camel</groupId> <artifactId>camel-micrometer-prometheus</artifactId> diff --git a/main-micrometer/src/main/resources/application.properties b/main-micrometer/src/main/resources/application.properties index 54dcbf18..4c2a4534 100644 --- a/main-micrometer/src/main/resources/application.properties +++ b/main-micrometer/src/main/resources/application.properties @@ -39,5 +39,8 @@ camel.metrics.enable-message-history=true # additional binders to include cpu, jvm info etc camel.metrics.binders=processor,jvm-info,file-descriptor +# micrometer for circuit breakers can be turned off +# camel.resilience4j.micrometer-enabled = false + # application properties hi = Hello diff --git a/main-micrometer/src/main/resources/camel/demo.camel.yaml b/main-micrometer/src/main/resources/camel/demo.camel.yaml index 83bfac24..e824c299 100644 --- a/main-micrometer/src/main/resources/camel/demo.camel.yaml +++ b/main-micrometer/src/main/resources/camel/demo.camel.yaml @@ -10,10 +10,12 @@ expression: constant: expression: Hello - - to: - uri: direct - parameters: - name: echo + - circuitBreaker: + steps: + - to: + uri: direct + parameters: + name: echo - log: message: ${body} - route: