-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
add transition from instrumentationlibrary -> scope #5085
add transition from instrumentationlibrary -> scope #5085
Conversation
599671c
to
9f21939
Compare
This is the last piece of upgrading to v0.15.0. This PR adds the tests and code to ensure the transition plan is implemented in the collector. Fixes open-telemetry#5074
9f21939
to
0e8ed3a
Compare
Codecov Report
@@ Coverage Diff @@
## main #5085 +/- ##
==========================================
- Coverage 90.04% 89.94% -0.10%
==========================================
Files 183 183
Lines 11035 11103 +68
==========================================
+ Hits 9936 9987 +51
- Misses 877 891 +14
- Partials 222 225 +3
Continue to review full report at Codecov.
|
@@ -133,7 +138,11 @@ func (lr LogsRequest) MarshalJSON() ([]byte, error) { | |||
|
|||
// UnmarshalJSON unmarshalls LogsRequest from JSON bytes. | |||
func (lr LogsRequest) UnmarshalJSON(data []byte) error { |
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.
Unrelated to your change: looks like for some reason we now have 2 places in the codebase to unmarshal OTLP JSON. I am not sure if this duplication is intentional.
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.
It is intentional because we have logically 2 "encodings":
- For Request/Response for grpc/http
- For persistent storage like Kafka/File etc. See proto Request message vs TracesData.
Co-authored-by: Tigran Najaryan <[email protected]>
7085979
to
7a61880
Compare
@@ -133,7 +138,11 @@ func (lr LogsRequest) MarshalJSON() ([]byte, error) { | |||
|
|||
// UnmarshalJSON unmarshalls LogsRequest from JSON bytes. | |||
func (lr LogsRequest) UnmarshalJSON(data []byte) error { |
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.
It is intentional because we have logically 2 "encodings":
- For Request/Response for grpc/http
- For persistent storage like Kafka/File etc. See proto Request message vs TracesData.
) * add transition from instrumentationlibrary -> scope This is the last piece of upgrading to v0.15.0. This PR adds the tests and code to ensure the transition plan is implemented in the collector. Fixes open-telemetry#5074 * fix spacing, add link * update unmarshaler, adding tests * update grpc tests * update changelog * Update model/otlpgrpc/logs.go Co-authored-by: Tigran Najaryan <[email protected]> Co-authored-by: Tigran Najaryan <[email protected]>
Follow up to #5076.
This is the last piece of upgrading to v0.15.0. This PR adds the tests and code to ensure the transition plan is implemented in the collector.
Fixes #5074