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

refactor(core): new type to print context and reduce allocations #5021

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

evenyag
Copy link
Contributor

@evenyag evenyag commented Aug 19, 2024

Which issue does this PR close?

Rationale for this change

As #4986 (comment) mentioned, the default interceptor always requires some small allocations to print the log context.

What changes are included in this PR?

Adds a new type LoggingContext to print context. It may reduce some allocations.

Are there any user-facing changes?

@evenyag evenyag marked this pull request as ready for review August 19, 2024 14:42
@evenyag evenyag requested a review from Xuanwo as a code owner August 19, 2024 14:42
@evenyag evenyag changed the title refactor: new type to print context and reduce allocations refactor(core): new type to print context and reduce allocations Aug 19, 2024
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Perfect, I love this!

@Xuanwo Xuanwo merged commit d001321 into apache:main Aug 19, 2024
221 of 223 checks passed
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