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

Avoid encoding list of spans twice in BaseHttpSender #270

Merged
merged 1 commit into from
Sep 9, 2024

Conversation

shakuzen
Copy link
Member

@shakuzen shakuzen commented Sep 9, 2024

newBody was called twice which would result in encoding the list of spans twice unnecessarily. This change will reduce allocations and copying memory.

newBody was called twice which would result in encoding the list of spans twice unnecessarily. This change will reduce allocations and copying memory.
@shakuzen shakuzen changed the title Avoid encoding list of spans twice Avoid encoding list of spans twice in BaseHttpSender Sep 9, 2024
Copy link
Member

@codefromthecrypt codefromthecrypt left a comment

Choose a reason for hiding this comment

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

great catch!

@codefromthecrypt codefromthecrypt merged commit 302b54c into master Sep 9, 2024
3 checks passed
@codefromthecrypt codefromthecrypt deleted the double-encoding branch September 9, 2024 05:38
@codefromthecrypt
Copy link
Member

@reta wanna do one of your version bumps prior to cutting a patch release?

@reta
Copy link
Contributor

reta commented Sep 9, 2024

@reta wanna do one of your version bumps prior to cutting a patch release?

Sure! Here we are: #271

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants