-
Notifications
You must be signed in to change notification settings - Fork 833
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
Remove supported temporality #3939
Remove supported temporality #3939
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3939 +/- ##
============================================
+ Coverage 89.71% 89.79% +0.07%
+ Complexity 4170 4166 -4
============================================
Files 498 498
Lines 12661 12646 -15
Branches 1223 1221 -2
============================================
- Hits 11359 11355 -4
+ Misses 908 900 -8
+ Partials 394 391 -3
Continue to review full report at Codecov.
|
EnumSet<AggregationTemporality> supported, @Nullable AggregationTemporality preferred) { | ||
// Next assume preferred should always win. | ||
static AggregationTemporality resolveTemporality(@Nullable AggregationTemporality preferred) { | ||
// If preferred temporality is provided respect it | ||
if (preferred != null) { | ||
return preferred; |
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.
we could just do a simple one-liner for this whole method now, right?
return preferred == null ? AggregationTemporality.CUMULATIVE : preferred;
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.
Yes. Will update.
Per recent change to the spec.