Skip to content

Add logging operators in DefaultExchangeFunction only when debug is enabled - #37095

Open
samueldlightfoot wants to merge 1 commit into
spring-projects:mainfrom
samueldlightfoot:perf/exchange-functions-debug-gating
Open

Add logging operators in DefaultExchangeFunction only when debug is enabled#37095
samueldlightfoot wants to merge 1 commit into
spring-projects:mainfrom
samueldlightfoot:perf/exchange-functions-debug-gating

Conversation

@samueldlightfoot

Copy link
Copy Markdown
Contributor

DefaultExchangeFunction.exchange added doOnRequest/doOnCancel logging operators unconditionally, which costs two subscriber wrappers per request even though the log message construction itself is already guarded lazily. Gate the operators on isDebugEnabled(), checked per exchange so runtime log level changes are still honored.

…nabled

DefaultExchangeFunction.exchange added doOnRequest/doOnCancel logging
operators unconditionally, which costs two subscriber wrappers per
request even though the log message construction itself is already
guarded lazily. Gate the operators on isDebugEnabled(), checked per
exchange so runtime log level changes are still honored.

Signed-off-by: samlightfoot <samueldlightfoot@gmail.com>
@samueldlightfoot
samueldlightfoot force-pushed the perf/exchange-functions-debug-gating branch from dcc7871 to 5a3f11f Compare July 30, 2026 19:05
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Jul 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged or decided on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants