You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring management.metrics.distribution.slo in a native application, the ServiceLevelObjectiveBoundary#valueOf(String) factory method is not registered for reflection, resulting in a runtime error:
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to bind properties under 'management.metrics.distribution.slo[http.server.requests]' to org.springframework.boot.actuate.autoconfigure.metrics.ServiceLevelObjectiveBoundary[]:
Property: management.metrics.distribution.slo[http.server.requests]
Value: "100ms, 200ms, 500ms, 1000ms"
Origin: class path resource [application.yml] - 15:35
Reason: org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type [java.lang.String] to type [org.springframework.boot.actuate.autoconfigure.metrics.ServiceLevelObjectiveBoundary[]]
Action:
Update your application's configuration
To reproduce, create a sample application with web, actuator and graalvm support and application.yml:
philwebb
changed the title
Missing graalvm native hints for ServiceLevelObjectiveBoundary
ServiceLevelObjectiveBoundary properties cannot be bound in a native image application
Apr 23, 2024
When configuring
management.metrics.distribution.slo
in a native application, theServiceLevelObjectiveBoundary#valueOf(String)
factory method is not registered for reflection, resulting in a runtime error:To reproduce, create a sample application with web, actuator and graalvm support and application.yml:
The text was updated successfully, but these errors were encountered: