@@ -27,7 +27,6 @@ func TestAddPoint_v1_gauge(t *testing.T) {
27
27
},
28
28
map [string ]interface {}{
29
29
"gauge" : float64 (23.9 ),
30
- "flags" : uint64 (1 ),
31
30
},
32
31
time .Unix (0 , 1395066363000000123 ).UTC (),
33
32
common .InfluxMetricValueTypeGauge )
@@ -60,12 +59,10 @@ func TestAddPoint_v1_gauge(t *testing.T) {
60
59
dp .Attributes ().PutStr ("engine_id" , "0" )
61
60
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
62
61
dp .SetDoubleValue (23.9 )
63
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (true ))
64
62
dp = m .Gauge ().DataPoints ().AppendEmpty ()
65
63
dp .Attributes ().PutStr ("engine_id" , "1" )
66
64
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
67
65
dp .SetDoubleValue (11.9 )
68
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (false ))
69
66
70
67
assertMetricsEqual (t , expect , b .GetMetrics ())
71
68
}
@@ -84,7 +81,6 @@ func TestAddPoint_v1_untypedGauge(t *testing.T) {
84
81
},
85
82
map [string ]interface {}{
86
83
"gauge" : float64 (23.9 ),
87
- "flags" : uint64 (1 ),
88
84
},
89
85
time .Unix (0 , 1395066363000000123 ).UTC (),
90
86
common .InfluxMetricValueTypeUntyped )
@@ -117,12 +113,10 @@ func TestAddPoint_v1_untypedGauge(t *testing.T) {
117
113
dp .Attributes ().PutStr ("engine_id" , "0" )
118
114
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
119
115
dp .SetDoubleValue (23.9 )
120
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (true ))
121
116
dp = m .Gauge ().DataPoints ().AppendEmpty ()
122
117
dp .Attributes ().PutStr ("engine_id" , "1" )
123
118
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
124
119
dp .SetDoubleValue (11.9 )
125
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (false ))
126
120
127
121
assertMetricsEqual (t , expect , b .GetMetrics ())
128
122
}
@@ -142,7 +136,6 @@ func TestAddPoint_v1_sum(t *testing.T) {
142
136
},
143
137
map [string ]interface {}{
144
138
"counter" : float64 (1027 ),
145
- "flags" : uint64 (1 ),
146
139
},
147
140
time .Unix (0 , 1395066363000000123 ).UTC (),
148
141
common .InfluxMetricValueTypeSum )
@@ -179,13 +172,11 @@ func TestAddPoint_v1_sum(t *testing.T) {
179
172
dp .Attributes ().PutStr ("method" , "post" )
180
173
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
181
174
dp .SetDoubleValue (1027 )
182
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (true ))
183
175
dp = m .Sum ().DataPoints ().AppendEmpty ()
184
176
dp .Attributes ().PutStr ("code" , "400" )
185
177
dp .Attributes ().PutStr ("method" , "post" )
186
178
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
187
179
dp .SetDoubleValue (3 )
188
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (false ))
189
180
190
181
assertMetricsEqual (t , expect , b .GetMetrics ())
191
182
}
@@ -205,7 +196,6 @@ func TestAddPoint_v1_untypedSum(t *testing.T) {
205
196
},
206
197
map [string ]interface {}{
207
198
"counter" : float64 (1027 ),
208
- "flags" : uint64 (0 ),
209
199
},
210
200
time .Unix (0 , 1395066363000000123 ).UTC (),
211
201
common .InfluxMetricValueTypeUntyped )
@@ -242,13 +232,11 @@ func TestAddPoint_v1_untypedSum(t *testing.T) {
242
232
dp .Attributes ().PutStr ("method" , "post" )
243
233
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
244
234
dp .SetDoubleValue (1027 )
245
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (false ))
246
235
dp = m .Sum ().DataPoints ().AppendEmpty ()
247
236
dp .Attributes ().PutStr ("code" , "400" )
248
237
dp .Attributes ().PutStr ("method" , "post" )
249
238
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
250
239
dp .SetDoubleValue (3 )
251
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (false ))
252
240
253
241
assertMetricsEqual (t , expect , b .GetMetrics ())
254
242
}
@@ -275,7 +263,6 @@ func TestAddPoint_v1_histogram(t *testing.T) {
275
263
"0.5" : float64 (129389 ),
276
264
"1" : float64 (133988 ),
277
265
"+Inf" : float64 (144320 ),
278
- "flags" : uint64 (1 ),
279
266
},
280
267
time .Unix (0 , 1395066363000000123 ).UTC (),
281
268
common .InfluxMetricValueTypeHistogram )
@@ -299,7 +286,6 @@ func TestAddPoint_v1_histogram(t *testing.T) {
299
286
dp .SetSum (53423 )
300
287
dp .BucketCounts ().FromRaw ([]uint64 {24054 , 9390 , 66948 , 28997 , 4599 , 10332 })
301
288
dp .ExplicitBounds ().FromRaw ([]float64 {0.05 , 0.1 , 0.2 , 0.5 , 1 })
302
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (true ))
303
289
304
290
assertMetricsEqual (t , expect , b .GetMetrics ())
305
291
}
@@ -325,7 +311,6 @@ func TestAddPoint_v1_histogram_missingInfinityBucket(t *testing.T) {
325
311
"0.2" : float64 (100392 ),
326
312
"0.5" : float64 (129389 ),
327
313
"1" : float64 (133988 ),
328
- "flags" : uint64 (0 ),
329
314
},
330
315
time .Unix (0 , 1395066363000000123 ).UTC (),
331
316
common .InfluxMetricValueTypeHistogram )
@@ -349,7 +334,6 @@ func TestAddPoint_v1_histogram_missingInfinityBucket(t *testing.T) {
349
334
dp .SetSum (53423 )
350
335
dp .BucketCounts ().FromRaw ([]uint64 {24054 , 9390 , 66948 , 28997 , 4599 , 10332 })
351
336
dp .ExplicitBounds ().FromRaw ([]float64 {0.05 , 0.1 , 0.2 , 0.5 , 1 })
352
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (false ))
353
337
354
338
assertMetricsEqual (t , expect , b .GetMetrics ())
355
339
}
@@ -375,7 +359,6 @@ func TestAddPoint_v1_untypedHistogram(t *testing.T) {
375
359
"0.2" : float64 (100392 ),
376
360
"0.5" : float64 (129389 ),
377
361
"1" : float64 (133988 ),
378
- "flags" : uint64 (1 ),
379
362
},
380
363
time .Unix (0 , 1395066363000000123 ).UTC (),
381
364
common .InfluxMetricValueTypeUntyped )
@@ -399,7 +382,6 @@ func TestAddPoint_v1_untypedHistogram(t *testing.T) {
399
382
dp .SetSum (53423 )
400
383
dp .BucketCounts ().FromRaw ([]uint64 {24054 , 9390 , 66948 , 28997 , 4599 , 10332 })
401
384
dp .ExplicitBounds ().FromRaw ([]float64 {0.05 , 0.1 , 0.2 , 0.5 , 1 })
402
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (true ))
403
385
404
386
assertMetricsEqual (t , expect , b .GetMetrics ())
405
387
}
@@ -425,7 +407,6 @@ func TestAddPoint_v1_summary(t *testing.T) {
425
407
"0.5" : float64 (4773 ),
426
408
"0.9" : float64 (9001 ),
427
409
"0.99" : float64 (76656 ),
428
- "flags" : uint64 (1 ),
429
410
},
430
411
time .Unix (0 , 1395066363000000123 ),
431
412
common .InfluxMetricValueTypeSummary )
@@ -446,7 +427,6 @@ func TestAddPoint_v1_summary(t *testing.T) {
446
427
dp .SetTimestamp (pcommon .NewTimestampFromTime (time .Unix (0 , 1395066363000000123 )))
447
428
dp .SetCount (2693 )
448
429
dp .SetSum (17560473 )
449
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (true ))
450
430
qv := dp .QuantileValues ().AppendEmpty ()
451
431
qv .SetQuantile (0.01 )
452
432
qv .SetValue (3102 )
@@ -487,7 +467,6 @@ func TestAddPoint_v1_untypedSummary(t *testing.T) {
487
467
"0.5" : float64 (4773 ),
488
468
"0.9" : float64 (9001 ),
489
469
"0.99" : float64 (76656 ),
490
- "flags" : uint64 (0 ),
491
470
},
492
471
time .Unix (0 , 1395066363000000123 ).UTC (),
493
472
common .InfluxMetricValueTypeUntyped )
@@ -511,7 +490,6 @@ func TestAddPoint_v1_untypedSummary(t *testing.T) {
511
490
dp .SetSum (17560473 )
512
491
dp .BucketCounts ().FromRaw ([]uint64 {3102 , 170 , 1501 , 4228 , 67655 , 2693 })
513
492
dp .ExplicitBounds ().FromRaw ([]float64 {0.01 , 0.05 , 0.5 , 0.9 , 0.99 })
514
- dp .SetFlags (pmetric .DefaultDataPointFlags .WithNoRecordedValue (false ))
515
493
516
494
assertMetricsEqual (t , expect , b .GetMetrics ())
517
495
}
0 commit comments