This makes for awkward implementations of the interfaces for projects that treat warnings as errors.
| /** |
| * Report a {@link Histogram}. |
| * @param name name of {@link Histogram} to report |
| * @param tags tags to report on |
| * @param buckets {@link Buckets} of the {@link Histogram} |
| * @param bucketLowerBound lower bound of the bucket to report |
| * @param bucketUpperBound upper bound of the bucket to report |
| * @param samples samples to report |
| */ |
| voidreportHistogramValueSamples( |
| Stringname, |
| Map<String, String> tags, |
| Bucketsbuckets, |
| doublebucketLowerBound, |
| doublebucketUpperBound, |
| longsamples |
| ); |
| |
| /** |
| * Report a {@link Histogram}. |
| * @param name name of {@link Histogram} to report |
| * @param tags tags to report on |
| * @param buckets {@link Buckets} of the {@link Histogram} |
| * @param bucketLowerBound lower bound of the bucket to report |
| * @param bucketUpperBound upper bound of the bucket to report |
| * @param samples samples to report |
| */ |
| voidreportHistogramDurationSamples( |
| Stringname, |
| Map<String, String> tags, |
| Bucketsbuckets, |
| DurationbucketLowerBound, |
| DurationbucketUpperBound, |
| longsamples |
| ); |
| Histogramhistogram(Stringname, @NullableBucketsbuckets); |
| /** |
| * @deprecated DO NOT USE |
| * |
| * Please use {@link ImmutableBuckets} instead |
| */ |
This makes for awkward implementations of the interfaces for projects that treat warnings as errors.
tally/core/src/main/java/com/uber/m3/tally/StatsReporter.java
Lines 67 to 101 in 3164eb6
tally/core/src/main/java/com/uber/m3/tally/Scope.java
Line 58 in 3164eb6
tally/core/src/main/java/com/uber/m3/tally/Buckets.java
Lines 27 to 31 in 3164eb6