-
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
update proto to 0.15.0 #5064
update proto to 0.15.0 #5064
Conversation
284797d
to
de67d79
Compare
Codecov Report
@@ Coverage Diff @@
## main #5064 +/- ##
==========================================
- Coverage 91.03% 91.02% -0.02%
==========================================
Files 180 180
Lines 10810 10830 +20
==========================================
+ Hits 9841 9858 +17
- Misses 750 753 +3
Partials 219 219
Continue to review full report at Codecov.
|
This includes changes to support optional types: - update sed script to update optional type to oneof - bump proto to 0.15.0 - make genproto - update sum to OptionalType - InstrumentationLibraryMetrics -> ScopeMetrics - InstrumentationLibrarySpans -> ScopeSpans - InstrumentationLibraryLogs -> ScopeLogs
8fad461
to
4f7ac00
Compare
@@ -1430,12 +1430,18 @@ func (ms HistogramDataPoint) SetCount(v uint64) { | |||
|
|||
// Sum returns the sum associated with this HistogramDataPoint. | |||
func (ms HistogramDataPoint) Sum() float64 { | |||
return (*ms.orig).Sum | |||
return (*ms.orig).GetSum() |
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: separate PR we should update this comment that a "zero-initialized" value is returned if the value is not present (HasSum() == false)
This includes changes to support optional types: - update sed script to update optional type to oneof - bump proto to 0.15.0 - make genproto - update sum to OptionalType - InstrumentationLibraryMetrics -> ScopeMetrics - InstrumentationLibrarySpans -> ScopeSpans - InstrumentationLibraryLogs -> ScopeLogs
This includes changes to support optional types:
Fixes #4258 #5071
Part of #5063