aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2018-07-11 12:44:17 -0700
committerKristen Kozak <sebright@google.com>2018-07-11 13:00:51 -0700
commit108bd04522ef5dad33228a9b20674c4111b93216 (patch)
tree5a4560c9906be3d9802191be7764d06d11ec6395
parentb3e35a26e6bd11debac97f29d7f299062006ca10 (diff)
downloadopencensus-java-108bd04522ef5dad33228a9b20674c4111b93216.tar.gz
Remove use of deprecated AggregationWindow from QuickStart.java.
-rw-r--r--examples/src/main/java/io/opencensus/examples/helloworld/QuickStart.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/src/main/java/io/opencensus/examples/helloworld/QuickStart.java b/examples/src/main/java/io/opencensus/examples/helloworld/QuickStart.java
index 285ae81b..c71e0f3e 100644
--- a/examples/src/main/java/io/opencensus/examples/helloworld/QuickStart.java
+++ b/examples/src/main/java/io/opencensus/examples/helloworld/QuickStart.java
@@ -24,7 +24,6 @@ import io.opencensus.stats.Measure.MeasureLong;
import io.opencensus.stats.Stats;
import io.opencensus.stats.StatsRecorder;
import io.opencensus.stats.View;
-import io.opencensus.stats.View.AggregationWindow.Cumulative;
import io.opencensus.stats.ViewData;
import io.opencensus.stats.ViewManager;
import io.opencensus.tags.TagContextBuilder;
@@ -72,8 +71,7 @@ public final class QuickStart {
VIDEO_SIZE,
Aggregation.Distribution.create(
BucketBoundaries.create(Arrays.asList(0.0, 16.0 * MiB, 256.0 * MiB))),
- Collections.singletonList(FRONTEND_KEY),
- Cumulative.create());
+ Collections.singletonList(FRONTEND_KEY));
/** Main launcher for the QuickStart example. */
public static void main(String[] args) throws InterruptedException {