Merge branch '2.6.x' into 2.7.x
Closes gh-31704
This commit is contained in:
@@ -66,6 +66,7 @@ public class HealthEndpoint extends HealthEndpointSupport<HealthContributor, Hea
|
||||
* @param groups the health endpoint groups
|
||||
* @param slowIndicatorLoggingThreshold duration after which slow health indicator
|
||||
* logging should occur
|
||||
* @since 2.6.9
|
||||
*/
|
||||
public HealthEndpoint(HealthContributorRegistry registry, HealthEndpointGroups groups,
|
||||
Duration slowIndicatorLoggingThreshold) {
|
||||
|
||||
@@ -52,7 +52,7 @@ abstract class HealthEndpointSupport<C, T> {
|
||||
|
||||
private final HealthEndpointGroups groups;
|
||||
|
||||
private Duration slowIndicatorLoggingThreshold;
|
||||
private final Duration slowIndicatorLoggingThreshold;
|
||||
|
||||
/**
|
||||
* Create a new {@link HealthEndpointSupport} instance.
|
||||
@@ -177,7 +177,7 @@ abstract class HealthEndpointSupport<C, T> {
|
||||
if (duration.compareTo(this.slowIndicatorLoggingThreshold) > 0) {
|
||||
String contributorClassName = contributor.getClass().getName();
|
||||
Object contributorIdentifier = (!StringUtils.hasLength(name)) ? contributorClassName
|
||||
: contributor.getClass().getName() + " (" + name + ")";
|
||||
: contributorClassName + " (" + name + ")";
|
||||
logger.warn(LogMessage.format("Health contributor %s took %s to respond", contributorIdentifier,
|
||||
DurationStyle.SIMPLE.print(duration)));
|
||||
}
|
||||
|
||||
@@ -66,6 +66,7 @@ public class HealthEndpointWebExtension extends HealthEndpointSupport<HealthCont
|
||||
* @param groups the health endpoint groups
|
||||
* @param slowIndicatorLoggingThreshold duration after which slow health indicator
|
||||
* logging should occur
|
||||
* @since 2.6.9
|
||||
*/
|
||||
public HealthEndpointWebExtension(HealthContributorRegistry registry, HealthEndpointGroups groups,
|
||||
Duration slowIndicatorLoggingThreshold) {
|
||||
|
||||
@@ -66,6 +66,7 @@ public class ReactiveHealthEndpointWebExtension
|
||||
* @param groups the health endpoint groups
|
||||
* @param slowIndicatorLoggingThreshold duration after which slow health indicator
|
||||
* logging should occur
|
||||
* @since 2.6.9
|
||||
*/
|
||||
public ReactiveHealthEndpointWebExtension(ReactiveHealthContributorRegistry registry, HealthEndpointGroups groups,
|
||||
Duration slowIndicatorLoggingThreshold) {
|
||||
|
||||
Reference in New Issue
Block a user