Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Update opentelementry-proto to 1.4 #6906
Update opentelementry-proto to 1.4 #6906
Changes from all commits
5ea4029
d640f5a
7f0700f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 236 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java#L236
Check warning on line 239 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java#L239
Check warning on line 242 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java#L241-L242
Check warning on line 245 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java#L245
Check warning on line 335 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java#L335
Check warning on line 341 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java#L341
Check warning on line 343 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/MarshalerUtil.java#L343
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.
So - IIRC - this is actually how we serialize both uint32 and int32 in Java.
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.
Nit: I'd explicitly call this out as serialization a
{@code optional int32} field.
Yes, it's in the name of the method.
Check warning on line 136 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java#L135-L136
Check warning on line 142 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java#L142
Check warning on line 144 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java#L144
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.
Nit: Maybe take
Collection
instead ofList
for more flexibility here.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.
List
is already used elsewhere in methods serializing repeated fields. I agree thatCollection
is more flexible, but shouldn't obligate @jhalliday to make that switch here. If Jonathan wants to follow the "boy scout rule", and bundle the switch to Collection in with this PR, I'm open to that. Can also open a separate issue and resolve in a followup PR.Check warning on line 360 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java#L360
Check warning on line 363 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java#L363
Check warning on line 366 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java#L365-L366
Check warning on line 368 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java#L368
Check warning on line 373 in exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java
Codecov / codecov/patch
exporters/common/src/main/java/io/opentelemetry/exporter/internal/marshal/Serializer.java#L370-L373
This file was deleted.
This file was deleted.