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

Remove unnecessary duplicate code and allocations for reading enums in JSON #5928

Merged
merged 1 commit into from
Aug 18, 2022

Conversation

bogdandrutu
Copy link
Member

Signed-off-by: Bogdan [email protected]

@bogdandrutu bogdandrutu requested review from a team and dmitryax August 17, 2022 15:40
@codecov
Copy link

codecov bot commented Aug 17, 2022

Codecov Report

Merging #5928 (acbd295) into main (22ca5e0) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #5928      +/-   ##
==========================================
- Coverage   91.94%   91.93%   -0.01%     
==========================================
  Files         199      200       +1     
  Lines       12409    12406       -3     
==========================================
- Hits        11409    11406       -3     
  Misses        789      789              
  Partials      211      211              
Impacted Files Coverage Δ
pdata/internal/json/enum.go 100.00% <100.00%> (ø)
pdata/pmetric/json.go 98.31% <100.00%> (-0.02%) ⬇️
pdata/ptrace/json.go 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@bogdandrutu
Copy link
Member Author

Comment from the initial PR, #5924 (comment). Will not address since that will block adding new values to the enums.

@bogdandrutu bogdandrutu force-pushed the rmduplicateenums branch 3 times, most recently from 7112cec to 6ad3d2b Compare August 17, 2022 20:47
Copy link
Member

@tigrannajaryan tigrannajaryan left a comment

Choose a reason for hiding this comment

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

LGTM

@bogdandrutu bogdandrutu merged commit c48eddc into open-telemetry:main Aug 18, 2022
@bogdandrutu bogdandrutu deleted the rmduplicateenums branch August 18, 2022 17:19
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