@@ -45,7 +45,8 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
45
45
10 ,
46
46
queueSize,
47
47
1 ,
48
- MILLISECONDS
48
+ MILLISECONDS ,
49
+ true
49
50
)
50
51
aggregator. start()
51
52
@@ -75,7 +76,8 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
75
76
10 ,
76
77
queueSize,
77
78
1 ,
78
- MILLISECONDS
79
+ MILLISECONDS ,
80
+ true
79
81
)
80
82
aggregator. start()
81
83
@@ -105,7 +107,8 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
105
107
features. supportsMetrics() >> true
106
108
features. peerTags() >> []
107
109
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
108
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS )
110
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS ,
111
+ true )
109
112
aggregator. start()
110
113
111
114
when :
@@ -147,7 +150,8 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
147
150
features. supportsMetrics() >> true
148
151
features. peerTags() >> []
149
152
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
150
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS )
153
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS ,
154
+ true )
151
155
aggregator. start()
152
156
153
157
when :
@@ -198,7 +202,8 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
198
202
features. supportsMetrics() >> true
199
203
features. peerTags() >>> [[" country" ], [" country" , " georegion" ],]
200
204
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
201
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS )
205
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS ,
206
+ true )
202
207
aggregator. start()
203
208
204
209
when :
@@ -257,7 +262,8 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
257
262
features. supportsMetrics() >> true
258
263
features. peerTags() >> [" peer.hostname" , " _dd.base_service" ]
259
264
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
260
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS )
265
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS ,
266
+ true )
261
267
aggregator. start()
262
268
263
269
when :
@@ -306,7 +312,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
306
312
features. supportsMetrics() >> true
307
313
features. peerTags() >> []
308
314
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty, sharedCommunicationObjects(features), HealthMetrics . NO_OP ,
309
- sink, writer, 10 , queueSize, reportingInterval, SECONDS )
315
+ sink, writer, 10 , queueSize, reportingInterval, SECONDS , true )
310
316
aggregator. start()
311
317
312
318
when :
@@ -354,7 +360,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
354
360
features. supportsMetrics() >> true
355
361
features. peerTags() >> []
356
362
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
357
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS )
363
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, reportingInterval, SECONDS , true )
358
364
long duration = 100
359
365
List<CoreSpan > trace = [
360
366
new SimpleSpan (" service" , " operation" , " resource" , " type" , true , false , false , 0 , duration, HTTP_OK ). setTag(SPAN_KIND , " baz" ),
@@ -419,7 +425,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
419
425
features. supportsMetrics() >> true
420
426
features. peerTags() >> []
421
427
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
422
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, reportingInterval, SECONDS )
428
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, reportingInterval, SECONDS , true )
423
429
long duration = 100
424
430
aggregator. start()
425
431
@@ -478,7 +484,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
478
484
features. supportsMetrics() >> true
479
485
features. peerTags() >> []
480
486
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
481
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, reportingInterval, SECONDS )
487
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, reportingInterval, SECONDS , true )
482
488
long duration = 100
483
489
aggregator. start()
484
490
@@ -568,7 +574,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
568
574
features. supportsMetrics() >> true
569
575
features. peerTags() >> []
570
576
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
571
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, reportingInterval, SECONDS )
577
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, reportingInterval, SECONDS , true )
572
578
long duration = 100
573
579
aggregator. start()
574
580
@@ -624,7 +630,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
624
630
features. supportsMetrics() >> true
625
631
features. peerTags() >> []
626
632
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
627
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS )
633
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS , true )
628
634
long duration = 100
629
635
aggregator. start()
630
636
@@ -671,7 +677,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
671
677
features. supportsMetrics() >> true
672
678
features. peerTags() >> []
673
679
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
674
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS )
680
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS , true )
675
681
long duration = 100
676
682
aggregator. start()
677
683
@@ -710,7 +716,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
710
716
features. supportsMetrics() >> true
711
717
features. peerTags() >> []
712
718
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
713
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS )
719
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS , true )
714
720
long duration = 100
715
721
aggregator. start()
716
722
@@ -741,7 +747,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
741
747
Sink sink = Stub (Sink )
742
748
DDAgentFeaturesDiscovery features = Mock (DDAgentFeaturesDiscovery )
743
749
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
744
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS )
750
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS , false )
745
751
aggregator. start()
746
752
747
753
when :
@@ -763,7 +769,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
763
769
features. supportsMetrics() >> false
764
770
features. peerTags() >> []
765
771
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
766
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, 200 , MILLISECONDS )
772
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, 10 , queueSize, 200 , MILLISECONDS , true )
767
773
final spans = [
768
774
new SimpleSpan (" service" , " operation" , " resource" , " type" , false , true , false , 0 , 10 , HTTP_OK )
769
775
]
@@ -795,7 +801,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
795
801
DDAgentFeaturesDiscovery features = Mock (DDAgentFeaturesDiscovery )
796
802
features. supportsMetrics() >> true
797
803
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator (empty,
798
- sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS )
804
+ sharedCommunicationObjects(features), HealthMetrics . NO_OP , sink, writer, maxAggregates, queueSize, 1 , SECONDS , true )
799
805
800
806
when :
801
807
def async = CompletableFuture . supplyAsync(new Supplier<Boolean > () {
@@ -828,7 +834,7 @@ class ConflatingMetricAggregatorTest extends DDSpecification {
828
834
DDAgentFeaturesDiscovery features = Mock(DDAgentFeaturesDiscovery)
829
835
features.supportsMetrics() >> true
830
836
ConflatingMetricsAggregator aggregator = new ConflatingMetricsAggregator(empty,
831
- sharedCommunicationObjects(features), HealthMetrics.NO_OP, sink, writer, 10, queueSize, reportingInterval, SECONDS)
837
+ sharedCommunicationObjects(features), HealthMetrics.NO_OP, sink, writer, 10, queueSize, reportingInterval, SECONDS, true )
832
838
aggregator.start()
833
839
834
840
when:
0 commit comments