diff --git a/java/operating-applications/observability.md b/java/operating-applications/observability.md index b62caaafa..104e535b9 100644 --- a/java/operating-applications/observability.md +++ b/java/operating-applications/observability.md @@ -274,7 +274,7 @@ Configure your application to enable the Open Telemetry Java Agent by adding or The buildpack delivers the Open Telemetry Agent Extension library with the common configuration for Open Telemetry that applies to Cloud Logging Service and Dynatrace. This library provides out-of-the box configuration of the required credentials taken from the service bindings and more sophisticated configuration possibilities. -[Learn more in the Open Telemetry Agent Extension library documentation](https://github.com/SAP/cf-java-logging-support/tree/main/cf-java-logging-support-opentelemetry-agent-extension){.learn-more} +[Learn more in the Open Telemetry Agent Extension library documentation](https://github.com/SAP/cf-java-logging-support/tree/main/cf-java-logging-support-opentelemetry-agent-extension){.learn-more} For troubleshooting purposes, you can increase the log level of the Open Telemetry Java Agent by adding the parameter `-Dotel.javaagent.debug=true` to the `JBP_CONFIG_JAVA_OPTS` argument. @@ -591,7 +591,19 @@ management: The example configuration makes Spring exposing only the health endpoint with health indicators `db` and `ping`. Other indicators ready for auto-configuration such as `diskSpace` are omitted. All components contributing to the aggregated status are shown individually, which helps to understand the reason for overall status `DOWN`. ::: tip -For multitenancy scenarios, CAP Java SDK replaces default the `db` indicator with an implementation that includes the status of all tenant databases. +For multitenancy scenarios, CAP Java replaces the default `db` indicator with an implementation that includes the status of all tenant databases. +::: + +In addition CAP Java offers a health indicator `modelProvider`. This health indicator allows to include the status of the MTX sidecar serving the [Model Provider Service](/java/reflection-api#the-model-provider-service). + +```yaml +management: + health: + modelProvider.enabled: true +``` + +::: warning +The `modelProvider` health indicator requires `@sap/cds` version `7.8.0` or higher in MTX sidecar. ::: Endpoint `/actuator/health` delivers a response (HTTP response code `200` for up, `503` for down) in JSON format with the overall `status` property (for example, `UP` or `DOWN`) and the contributing components: