Repository: camel
Updated Branches:
  refs/heads/master e1cc3a2cf -> e09180940


CAMEL-11167: Include Camel name in spring boot health check


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/e0918094
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/e0918094
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/e0918094

Branch: refs/heads/master
Commit: e09180940d967164f509e85e83f5eab04f24444b
Parents: e1cc3a2
Author: Claus Ibsen <davscl...@apache.org>
Authored: Wed Apr 19 11:14:46 2017 +0200
Committer: Claus Ibsen <davscl...@apache.org>
Committed: Wed Apr 19 11:15:47 2017 +0200

----------------------------------------------------------------------
 .../org/apache/camel/spring/boot/health/CamelHealthIndicator.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/e0918094/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/CamelHealthIndicator.java
----------------------------------------------------------------------
diff --git 
a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/CamelHealthIndicator.java
 
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/CamelHealthIndicator.java
index 7a9feb9..67ca02d 100644
--- 
a/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/CamelHealthIndicator.java
+++ 
b/components/camel-spring-boot/src/main/java/org/apache/camel/spring/boot/health/CamelHealthIndicator.java
@@ -37,6 +37,7 @@ public class CamelHealthIndicator extends 
AbstractHealthIndicator {
         if (camelContext == null) {
             builder.unknown();
         } else {
+            builder.withDetail("name", camelContext.getName());
             builder.withDetail("version", camelContext.getVersion());
             builder.withDetail("contextStatus", 
camelContext.getStatus().name());
             if (camelContext.getStatus().isStarted()) {

Reply via email to