-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure enums are consistently declared
Resolves #363 The rules are: - Place enums outside the messages. - Prefix the enum value names with enum name, using underscores with uppercase. The changes in this PR should be backwards compatible (or allowed because they are in experimental parts): - For Binary Protobuf: the encoding does not use enum names anywhere on the wire. There are no changes on the wire at all. - For JSON Protobuf: - DataPointFlags and LogRecordFlags are not visible on the wire since they are just helper enums to be used in the code. - Moving SpanKind and StatusCode out of the message should not result in any changes on the wire. - ConstantDecision is experimental and we are free to break it. Note: all of these changes are breaking for the code that consumes the generated proto files. We consider this acceptable since this repository is not yet declared Stable. I would like someone to independently confirm my analysis to make sure this PR does not break anything on the wire (neither for binary nor for JSON).
- Loading branch information
1 parent
c31b2d8
commit be5cd5c
Showing
4 changed files
with
53 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters