Skip to content

Log health contributor statuses when Eureka health status changes - #4592

Open
yashdotdev13 wants to merge 1 commit into
spring-cloud:mainfrom
yashdotdev13:issue-4135-log-health-contributor-status
Open

Log health contributor statuses when Eureka health status changes#4592
yashdotdev13 wants to merge 1 commit into
spring-cloud:mainfrom
yashdotdev13:issue-4135-log-health-contributor-status

Conversation

@yashdotdev13

Copy link
Copy Markdown

Summary

Adds logging of individual health contributor statuses when the aggregated Eureka health status changes.

The health check handler now collects contributor names and their corresponding statuses while evaluating blocking and reactive health contributors. The collected statuses are included in the log message together with the resulting Eureka InstanceStatus.

Composite blocking and reactive health contributors continue to be traversed recursively, with their individual contributor names preserved.

Changes

  • Collect health contributor statuses by name during health evaluation.
  • Log the resulting Eureka health status together with contributor statuses when the status differs from the current InstanceStatus.
  • Preserve the existing status aggregation behavior by aggregating the collected statuses.
  • Add test coverage for named blocking health indicators.
  • Add test coverage for named reactive health indicators.

Testing

./mvnw.cmd -pl spring-cloud-netflix-eureka-client -DskipTests compile
./mvnw.cmd -pl spring-cloud-netflix-eureka-client -Dtest=EurekaHealthCheckHandlerTests test

Signed-off-by: 98001yash <yashchauhan.gaya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants