Skip to content

Incorrect default value for management.httpexchanges.recording.include in configuration metadata#50010

Merged
snicoll merged 1 commit intospring-projects:3.5.xfrom
MohammedGhallab:fix-issue-49952
Apr 10, 2026
Merged

Incorrect default value for management.httpexchanges.recording.include in configuration metadata#50010
snicoll merged 1 commit intospring-projects:3.5.xfrom
MohammedGhallab:fix-issue-49952

Conversation

@MohammedGhallab
Copy link
Copy Markdown
Contributor

Description

The configuration metadata for management.httpexchanges.recording.include was inconsistent with the actual default values in the code.

Changes:

  • Removed errors from defaultValue (not present in Include enum).
  • Added time-taken to defaultValue (defined in Include.defaultIncludes()).
  • Aligned metadata with org.springframework.boot.actuate.web.exchanges.Include.

Fixes #49952

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Apr 10, 2026
Copy link
Copy Markdown
Member

@snicoll snicoll left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR. I've added a number of comments for your consideration.

{
"name": "management.httpexchanges.recording.include",
"type": "java.util.Set<org.springframework.boot.actuate.web.exchanges.Include>",
"description": "Items to include in the exchange recording.",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are unrelated to fixing the incorrect default value, please revert.

"request-headers",
"response-headers",
"errors"
"time-taken"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default includes are as follows:

defaultIncludes.add(Include.TIME_TAKEN);
defaultIncludes.add(Include.REQUEST_HEADERS);
defaultIncludes.add(Include.RESPONSE_HEADERS);
DEFAULT_INCLUDES = Collections.unmodifiableSet(defaultIncludes);

As such time-taken should be the first value, not the last.

}
]
}
} No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reading your commit once you've submitted your PR helps to spot those changes you probably didn't mean to do. In this case, the newline has been removed and should be restored.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the branch with the requested changes. I've reordered the values, removed the unrelated modifications, and ensured the newline at the end of the file is present.

Thank you for the review!

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Apr 10, 2026
@snicoll snicoll self-assigned this Apr 10, 2026
@snicoll snicoll changed the base branch from main to 3.5.x April 10, 2026 13:12
snicoll pushed a commit to MohammedGhallab/spring-boot that referenced this pull request Apr 10, 2026
See spring-projectsgh-50010

Signed-off-by: MohammedGhallab <mohammedfahmiyghallab@gmail.com>
@snicoll snicoll changed the title Fix incorrect configuration metadata for management.httpexchanges.recording.include Incorrect default value for management.httpexchanges.recording.include in configuration metadata Apr 10, 2026
@snicoll snicoll added type: documentation A documentation update and removed status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged labels Apr 10, 2026
@snicoll snicoll added this to the 3.5.14 milestone Apr 10, 2026
See spring-projectsgh-50010

Signed-off-by: MohammedGhallab <mohammedfahmiyghallab@gmail.com>
@snicoll snicoll merged commit 4c0797f into spring-projects:3.5.x Apr 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: documentation A documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect default value for management.httpexchanges.recording.include in configuration metadata

3 participants