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

fix: only map selftime.sum to protobuf if the sum is not zero #61

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

kruskall
Copy link
Member

@kruskall kruskall commented Jun 13, 2023

Small fix for protobuf mapping.

sum is a pointer type, we should only set one if the value is not empty to have the same behaviour as the old/classic models

Related to #52

@kruskall kruskall requested a review from a team June 13, 2023 14:51
Copy link
Member

@dmathieu dmathieu left a comment

Choose a reason for hiding this comment

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

Should there be tests?

@kruskall kruskall merged commit 4503277 into elastic:main Jun 13, 2023
@kruskall kruskall deleted the fix/span-selftime-pb branch June 13, 2023 15:15
@kruskall
Copy link
Member Author

Should there be tests?

This is indirectly tested by the additional commit migrating to protobuf, I don't think we should spend more effort in adding more coverage than we already are as this file/code is going away once we fully switch to protobuf.

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