Skip to content

use protojson when formatting for logs#1844

Merged
helsaawy merged 1 commit intomicrosoft:mainfrom
helsaawy:log-proto-json
Jul 20, 2023
Merged

use protojson when formatting for logs#1844
helsaawy merged 1 commit intomicrosoft:mainfrom
helsaawy:log-proto-json

Conversation

@helsaawy
Copy link
Copy Markdown
Contributor

@helsaawy helsaawy commented Jul 20, 2023

use google.golang.org/protobuf/encoding/protojson when encoding protobuf structs in logs.
the biggest difference will be enums being encoded by their string name instead of numerical value

@helsaawy helsaawy requested a review from a team as a code owner July 20, 2023 17:01
@ambarve
Copy link
Copy Markdown
Contributor

ambarve commented Jul 20, 2023

nit: It would be good to have an example of how proto message encoding looks without this change vs how it will look after this change in the PR description.

@helsaawy helsaawy merged commit d71606e into microsoft:main Jul 20, 2023
@helsaawy helsaawy deleted the log-proto-json branch July 20, 2023 20:01
princepereira pushed a commit to princepereira/hcsshim that referenced this pull request Aug 29, 2024
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