The configuration metadata for management.httpexchanges.recording.include
declares a default value of ["request-headers", "response-headers", "errors"],
but the Include enum does not have an ERRORS constant and the actual default
set in code is TIME_TAKEN, REQUEST_HEADERS, and RESPONSE_HEADERS.
The metadata default value has two problems:
"errors" does not correspond to any Include enum constant
"time-taken" is missing despite being part of the actual default
This appears to be an old incorrect value from the earlier HTTP trace metadata
that was preserved through later property renames.
As a result, IDEs show errors as a valid default value, and users who
configure management.httpexchanges.recording.include=errors based on what the
metadata suggests may encounter an enum binding failure at startup.
Relevant locations:
module/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
module/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/exchanges/Include.java
Spring Boot versions: current main branch and 3.5.x
I checked that the same metadata value and code default are present in both.
The configuration metadata for
management.httpexchanges.recording.includedeclares a default value of
["request-headers", "response-headers", "errors"],but the
Includeenum does not have anERRORSconstant and the actual defaultset in code is
TIME_TAKEN,REQUEST_HEADERS, andRESPONSE_HEADERS.The metadata default value has two problems:
"errors"does not correspond to anyIncludeenum constant"time-taken"is missing despite being part of the actual defaultThis appears to be an old incorrect value from the earlier HTTP trace metadata
that was preserved through later property renames.
As a result, IDEs show
errorsas a valid default value, and users whoconfigure
management.httpexchanges.recording.include=errorsbased on what themetadata suggests may encounter an enum binding failure at startup.
Relevant locations:
module/spring-boot-actuator-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.jsonmodule/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/web/exchanges/Include.javaSpring Boot versions: current
mainbranch and3.5.xI checked that the same metadata value and code default are present in both.