Skip to content
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

Check logging enabled before preparing OTel log message #85

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

stevejgordon
Copy link
Contributor

This avoids wasted allocations preparing the log message string is no loggers are actually enabled.

@stevejgordon stevejgordon merged commit 82cb184 into main Apr 24, 2024
4 of 5 checks passed
@stevejgordon stevejgordon deleted the perf/logging-allocations branch April 24, 2024 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants