diff options
author | Bogdan Drutu <bdrutu@google.com> | 2018-10-02 16:44:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 16:44:12 -0400 |
commit | bcfd159c58e80036bbbe1468bf305154d001982e (patch) | |
tree | 274154a86904f767aa38eeb28b5a4870e89a47cc /impl_core | |
parent | 84630fb6ae3474039cec4977c989b1a30e695906 (diff) | |
download | opencensus-java-bcfd159c58e80036bbbe1468bf305154d001982e.tar.gz |
Make metrics compatible with the current proto definition. (#1479)
* Make metrics compatible with the current proto definition.
* Fix minor comments from the review.
* Fix @Nullable.
Diffstat (limited to 'impl_core')
-rw-r--r-- | impl_core/src/main/java/io/opencensus/implcore/stats/MutableAggregation.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/impl_core/src/main/java/io/opencensus/implcore/stats/MutableAggregation.java b/impl_core/src/main/java/io/opencensus/implcore/stats/MutableAggregation.java index a41850d2..eaf440ff 100644 --- a/impl_core/src/main/java/io/opencensus/implcore/stats/MutableAggregation.java +++ b/impl_core/src/main/java/io/opencensus/implcore/stats/MutableAggregation.java @@ -430,7 +430,11 @@ abstract class MutableAggregation { return Point.create( Value.distributionValue( Distribution.create( - mean, count, sumOfSquaredDeviations, bucketBoundaries.getBoundaries(), buckets)), + count, + mean * count, + sumOfSquaredDeviations, + bucketBoundaries.getBoundaries(), + buckets)), timestamp); } |