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

Micro-optimize Span Field recording #642

Merged
merged 2 commits into from
Feb 26, 2024
Merged

Micro-optimize Span Field recording #642

merged 2 commits into from
Feb 26, 2024

Conversation

Swatinem
Copy link
Member

  • Use &'static str as the key
  • Reuse a thread local buffer to format Debug fields

This duplicates the FieldVisitor, as other parts of the integration still expect String keys.


This extracts the good part of getsentry/symbolicator#1382

- Use `&'static str` as the key
- Reuse a thread local buffer to format `Debug` fields

This duplicates the `FieldVisitor`, as other parts of the integration still expect `String` keys.
@Swatinem Swatinem requested a review from a team February 20, 2024 15:22
@Swatinem Swatinem self-assigned this Feb 20, 2024
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

Attention: Patch coverage is 44.89796% with 27 lines in your changes are missing coverage. Please review.

Project coverage is 73.14%. Comparing base (93c4b2f) to head (3143170).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #642      +/-   ##
==========================================
- Coverage   73.33%   73.14%   -0.19%     
==========================================
  Files          62       62              
  Lines        7563     7603      +40     
==========================================
+ Hits         5546     5561      +15     
- Misses       2017     2042      +25     

@Swatinem Swatinem merged commit 5f3d9ca into master Feb 26, 2024
13 checks passed
@Swatinem Swatinem deleted the swatinem/opt-tracing branch February 26, 2024 09:23
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.

2 participants