@@ -88,15 +88,14 @@ TEST_F(StatsPluginEnd2EndTest, ErrorCount) {
8888 .set_measure (kRpcClientErrorCountMeasureName )
8989 .set_name (" client_method" )
9090 .set_aggregation (stats::Aggregation::Sum ())
91- . set_aggregation_window ( stats::AggregationWindow::Cumulative ())
91+
9292 .add_column (kMethodTagKey );
9393 stats::View client_method_view (client_method_descriptor);
9494 const auto server_method_descriptor =
9595 stats::ViewDescriptor ()
9696 .set_measure (kRpcServerErrorCountMeasureName )
9797 .set_name (" server_method" )
9898 .set_aggregation (stats::Aggregation::Sum ())
99- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
10099 .add_column (kMethodTagKey );
101100 stats::View server_method_view (client_method_descriptor);
102101
@@ -105,15 +104,13 @@ TEST_F(StatsPluginEnd2EndTest, ErrorCount) {
105104 .set_measure (kRpcClientErrorCountMeasureName )
106105 .set_name (" client_status" )
107106 .set_aggregation (stats::Aggregation::Sum ())
108- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
109107 .add_column (kStatusTagKey );
110108 stats::View client_status_view (client_status_descriptor);
111109 const auto server_status_descriptor =
112110 stats::ViewDescriptor ()
113111 .set_measure (kRpcServerErrorCountMeasureName )
114112 .set_name (" server_status" )
115113 .set_aggregation (stats::Aggregation::Sum ())
116- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
117114 .add_column (kStatusTagKey );
118115 stats::View server_status_view (server_status_descriptor);
119116
@@ -167,7 +164,6 @@ TEST_F(StatsPluginEnd2EndTest, RequestResponseBytes) {
167164 .set_name (" client_request_bytes" )
168165 .set_aggregation (stats::Aggregation::Distribution (
169166 stats::BucketBoundaries::Explicit ({})))
170- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
171167 .add_column (kMethodTagKey );
172168 stats::View client_request_bytes_view (client_request_bytes_descriptor);
173169 const auto client_response_bytes_descriptor =
@@ -176,7 +172,6 @@ TEST_F(StatsPluginEnd2EndTest, RequestResponseBytes) {
176172 .set_name (" client_response_bytes" )
177173 .set_aggregation (stats::Aggregation::Distribution (
178174 stats::BucketBoundaries::Explicit ({})))
179- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
180175 .add_column (kMethodTagKey );
181176 stats::View client_response_bytes_view (client_response_bytes_descriptor);
182177 const auto server_request_bytes_descriptor =
@@ -185,7 +180,6 @@ TEST_F(StatsPluginEnd2EndTest, RequestResponseBytes) {
185180 .set_name (" server_request_bytes" )
186181 .set_aggregation (stats::Aggregation::Distribution (
187182 stats::BucketBoundaries::Explicit ({})))
188- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
189183 .add_column (kMethodTagKey );
190184 stats::View server_request_bytes_view (server_request_bytes_descriptor);
191185 const auto server_response_bytes_descriptor =
@@ -194,7 +188,6 @@ TEST_F(StatsPluginEnd2EndTest, RequestResponseBytes) {
194188 .set_name (" server_response_bytes" )
195189 .set_aggregation (stats::Aggregation::Distribution (
196190 stats::BucketBoundaries::Explicit ({})))
197- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
198191 .add_column (kMethodTagKey );
199192 stats::View server_response_bytes_view (server_response_bytes_descriptor);
200193
@@ -254,7 +247,6 @@ TEST_F(StatsPluginEnd2EndTest, Latency) {
254247 .set_name (" client_latency" )
255248 .set_aggregation (stats::Aggregation::Distribution (
256249 stats::BucketBoundaries::Explicit ({})))
257- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
258250 .add_column (kMethodTagKey );
259251 stats::View client_latency_view (client_latency_descriptor);
260252 const auto client_server_elapsed_time_descriptor =
@@ -263,7 +255,6 @@ TEST_F(StatsPluginEnd2EndTest, Latency) {
263255 .set_name (" client_server_elapsed_time" )
264256 .set_aggregation (stats::Aggregation::Distribution (
265257 stats::BucketBoundaries::Explicit ({})))
266- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
267258 .add_column (kMethodTagKey );
268259 stats::View client_server_elapsed_time_view (
269260 client_server_elapsed_time_descriptor);
@@ -273,7 +264,6 @@ TEST_F(StatsPluginEnd2EndTest, Latency) {
273264 .set_name (" server_server_elapsed_time" )
274265 .set_aggregation (stats::Aggregation::Distribution (
275266 stats::BucketBoundaries::Explicit ({})))
276- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
277267 .add_column (kMethodTagKey );
278268 stats::View server_server_elapsed_time_view (
279269 server_server_elapsed_time_descriptor);
@@ -332,31 +322,27 @@ TEST_F(StatsPluginEnd2EndTest, StartFinishCount) {
332322 .set_measure (kRpcClientStartedCountMeasureName )
333323 .set_name (" client_started_count" )
334324 .set_aggregation (stats::Aggregation::Sum ())
335- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
336325 .add_column (kMethodTagKey );
337326 stats::View client_started_count_view (client_started_count_descriptor);
338327 const auto client_finished_count_descriptor =
339328 stats::ViewDescriptor ()
340329 .set_measure (kRpcClientFinishedCountMeasureName )
341330 .set_name (" client_finished_count" )
342331 .set_aggregation (stats::Aggregation::Sum ())
343- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
344332 .add_column (kMethodTagKey );
345333 stats::View client_finished_count_view (client_finished_count_descriptor);
346334 const auto server_started_count_descriptor =
347335 stats::ViewDescriptor ()
348336 .set_measure (kRpcServerStartedCountMeasureName )
349337 .set_name (" server_started_count" )
350338 .set_aggregation (stats::Aggregation::Sum ())
351- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
352339 .add_column (kMethodTagKey );
353340 stats::View server_started_count_view (server_started_count_descriptor);
354341 const auto server_finished_count_descriptor =
355342 stats::ViewDescriptor ()
356343 .set_measure (kRpcServerFinishedCountMeasureName )
357344 .set_name (" server_finished_count" )
358345 .set_aggregation (stats::Aggregation::Sum ())
359- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
360346 .add_column (kMethodTagKey );
361347 stats::View server_finished_count_view (server_finished_count_descriptor);
362348
@@ -394,31 +380,27 @@ TEST_F(StatsPluginEnd2EndTest, RequestResponseCount) {
394380 .set_measure (kRpcClientRequestCountMeasureName )
395381 .set_name (" client_request_count" )
396382 .set_aggregation (stats::Aggregation::Sum ())
397- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
398383 .add_column (kMethodTagKey );
399384 stats::View client_request_count_view (client_request_count_descriptor);
400385 const auto client_response_count_descriptor =
401386 stats::ViewDescriptor ()
402387 .set_measure (kRpcClientResponseCountMeasureName )
403388 .set_name (" client_response_count" )
404389 .set_aggregation (stats::Aggregation::Sum ())
405- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
406390 .add_column (kMethodTagKey );
407391 stats::View client_response_count_view (client_response_count_descriptor);
408392 const auto server_request_count_descriptor =
409393 stats::ViewDescriptor ()
410394 .set_measure (kRpcServerRequestCountMeasureName )
411395 .set_name (" server_request_count" )
412396 .set_aggregation (stats::Aggregation::Sum ())
413- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
414397 .add_column (kMethodTagKey );
415398 stats::View server_request_count_view (server_request_count_descriptor);
416399 const auto server_response_count_descriptor =
417400 stats::ViewDescriptor ()
418401 .set_measure (kRpcServerResponseCountMeasureName )
419402 .set_name (" server_response_count" )
420403 .set_aggregation (stats::Aggregation::Sum ())
421- .set_aggregation_window (stats::AggregationWindow::Cumulative ())
422404 .add_column (kMethodTagKey );
423405 stats::View server_response_count_view (server_response_count_descriptor);
424406
0 commit comments