-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not create trace log message when trace logging is not enabled #544
Conversation
Hi Confluent Team, This is generating quite some unnecessary garbage in our applications. Did you already have time to look into this? Or is there something we can/should do before this PR is considered? Thanks! |
PR Summary
|
…e logging is not enabled.
Hi @rkolesnev, I have added some more conditional checks to avoid unnecessary calculation of properties for trace logging when trace logging is not active. |
…e logging is not enabled.
PR Summary
|
Hi @rkolesnev , Did the team already have time to look into this? Thanks |
Approved, merged. |
The "Can't take as work ..." trace message is created even when trace logging is not enabled. In our profiler we saw that this generates a significant amount of garbage. This PR only generates the message if trace logging is enabled.
Checklist