Skip to content

Improve exception handling in the failed health checks#676

Open
xstefank wants to merge 1 commit intosmallrye:mainfrom
xstefank:exception-log-669
Open

Improve exception handling in the failed health checks#676
xstefank wants to merge 1 commit intosmallrye:mainfrom
xstefank:exception-log-669

Conversation

@xstefank
Copy link
Member

@xstefank xstefank commented Dec 8, 2025

fixes #669

Signed-off-by: xstefank <xstefank122@gmail.com>
@xstefank xstefank requested a review from jmartisk December 8, 2025 13:02
@xstefank
Copy link
Member Author

xstefank commented Dec 8, 2025

@turing85 maybe you could also take a look and help me adjust this new API if needed?

if (optionalUncheckedExceptionDataStyle.isPresent()) {
HealthLogging.logger
.warn("Configuration property \"io.smallrye.health.uncheckedExceptionDataStyle\" is deprecated. Use " +
"\"io.smallrye.health.exception-log-type\" and \"io.smallrye.health.exception.errorid.detail\" instead.");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this deserve a piece of documentation? I don't think io.smallrye.health.exception-log-type and io.smallrye.health.exception.errorid.detail properties are documented? How would the user know how to use them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide a way to handle exceptions in health checks

2 participants