codecentric / spring-boot-admin

Admin UI for administration of spring boot applications
Apache License 2.0
12.34k stars 3.08k forks source link

Status changed event does not include health details #2997

Closed jgraglia closed 9 months ago

jgraglia commented 9 months ago

Spring Boot Admin Server information

Client information

Description

When upgrading from Spring Boot Admin server 2.7.10 to 2.7.11 I have found that the status changed event no longer include the additionnal details.

I have build a demo system reproducing the issue : see https://github.com/jgraglia/spring-boot-admin-registration-issue

I have a client spring boot defining some custom components for the health status :

@Component
public class CustomHealthComponent implements HealthIndicator {
    @Override
    public Health health() {
        return Health.up().withDetail("foo10", "bar").withDetail("tags", Set.of("A10", "B10")).build();
    }
}

Those details are still visible in the healh page of Spring Boot Admin Server image

but there are missing from the "Status Update" event in the journal.

With Spring Boot 2.7.10, the details were included in the event

image

Version 2.7.11 does include a commit on the status event but I can't see the change

https://github.com/codecentric/spring-boot-admin/compare/2.7.10...2.7.11

SteKoe commented 9 months ago

Hi @jgraglia,

thanks for opening the issue and providing a demo repository! We found some regression issues in the 2.7-branch and included a fix for your issue as well. Please try using our newest release 2.7.15. It should include the desired details / custom components now.

Regards, SteKoe

jgraglia commented 8 months ago

I can confirm that 2.7.15 fix the regression.

Thank you for this quick fix & release !