Antonin Stefanutti created CAMEL-17138:
------------------------------------------

             Summary: Propagate error details from Camel health to MicroProfile 
Health
                 Key: CAMEL-17138
                 URL: https://issues.apache.org/jira/browse/CAMEL-17138
             Project: Camel
          Issue Type: Improvement
            Reporter: Antonin Stefanutti


The {{org.apache.camel.health.HealthCheck.Result}} interface exposes the 
{{Optional<Throwable> getError()}} method, that provides the exception 
information that may explain the health check result.

This can prove very useful information for users. However, it is not propagated 
to the MicroProfile Health response 
{{org.eclipse.microprofile.health.HealthCheckResponse}}, that's converted from 
the Camel health check result.

If the optional error is present, it should be propagated and accessible from 
the {{Optional<Map<String, Object>> HealthCheckResponse.getData()}} API.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to