I think Spring Boot's DataSourceHealthIndicator does not work for spring-cloud-gcp-data-spanner because it does not use JDBC DataSource.
A custom health indicator Such as SpannerHealthIndicator and its auto configures should be added into spring-cloud-gcp-data-spanner to avoid boilerplate.
I think Spring Boot's
DataSourceHealthIndicator
does not work forspring-cloud-gcp-data-spanner
because it does not use JDBC DataSource. A custom health indicator Such asSpannerHealthIndicator
and its auto configures should be added intospring-cloud-gcp-data-spanner
to avoid boilerplate.https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.endpoints.health.writing-custom-health-indicators