-
Notifications
You must be signed in to change notification settings - Fork 648
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
Regenerate opentelemetry-proto to be compatible with protobuf 3 and 4 #3070
Regenerate opentelemetry-proto to be compatible with protobuf 3 and 4 #3070
Conversation
309a4c3
to
8ac8e5c
Compare
8ac8e5c
to
d4869e0
Compare
I tested it out and it actually failed for protobuf 3.19.. Leaving it as is and I updated the tox file to test specifically against protobuf 3.19.x. I think this is ready to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! I have also done some benchmark locally myself with this PR and confirmed that the upb is properly loaded and brings performance improvements for protobuf serialization.
Thanks, @aabmass! |
A new release that includes these changes would be appreciated. |
Fixes #2880
Fixes #3050
I pinned
grpcio-tools==1.48.1
dev dependency which provides protoc 3.19.4. This version appears to generate code compatible with both protobuf 3.x and 4.x. Then I regenerated the protobufs, and added tox envs to test the relevant packages against both versions of protobuf.Finally I widened the protobuf version specifier in the
opentelemetry-proto
package.