@@ -215,19 +215,19 @@ pub mod tonic {
215
215
. data_points ( )
216
216
. map ( |dp| TonicHistogramDataPoint {
217
217
attributes : dp. attributes ( ) . map ( Into :: into) . collect ( ) ,
218
- start_time_unix_nano : to_nanos ( hist. start_time ) ,
219
- time_unix_nano : to_nanos ( hist. time ) ,
220
- count : dp. count ,
221
- sum : Some ( dp. sum . into_f64 ( ) ) ,
218
+ start_time_unix_nano : to_nanos ( hist. start_time ( ) ) ,
219
+ time_unix_nano : to_nanos ( hist. time ( ) ) ,
220
+ count : dp. count ( ) ,
221
+ sum : Some ( dp. sum ( ) . into_f64 ( ) ) ,
222
222
bucket_counts : dp. bucket_counts ( ) . collect ( ) ,
223
223
explicit_bounds : dp. bounds ( ) . collect ( ) ,
224
224
exemplars : dp. exemplars ( ) . map ( Into :: into) . collect ( ) ,
225
225
flags : TonicDataPointFlags :: default ( ) as u32 ,
226
- min : dp. min . map ( Numeric :: into_f64) ,
227
- max : dp. max . map ( Numeric :: into_f64) ,
226
+ min : dp. min ( ) . map ( Numeric :: into_f64) ,
227
+ max : dp. max ( ) . map ( Numeric :: into_f64) ,
228
228
} )
229
229
. collect ( ) ,
230
- aggregation_temporality : TonicTemporality :: from ( hist. temporality ) . into ( ) ,
230
+ aggregation_temporality : TonicTemporality :: from ( hist. temporality ( ) ) . into ( ) ,
231
231
}
232
232
}
233
233
}
@@ -242,28 +242,28 @@ pub mod tonic {
242
242
. data_points ( )
243
243
. map ( |dp| TonicExponentialHistogramDataPoint {
244
244
attributes : dp. attributes ( ) . map ( Into :: into) . collect ( ) ,
245
- start_time_unix_nano : to_nanos ( hist. start_time ) ,
246
- time_unix_nano : to_nanos ( hist. time ) ,
247
- count : dp. count as u64 ,
248
- sum : Some ( dp. sum . into_f64 ( ) ) ,
249
- scale : dp. scale . into ( ) ,
250
- zero_count : dp. zero_count ,
245
+ start_time_unix_nano : to_nanos ( hist. start_time ( ) ) ,
246
+ time_unix_nano : to_nanos ( hist. time ( ) ) ,
247
+ count : dp. count ( ) as u64 ,
248
+ sum : Some ( dp. sum ( ) . into_f64 ( ) ) ,
249
+ scale : dp. scale ( ) . into ( ) ,
250
+ zero_count : dp. zero_count ( ) ,
251
251
positive : Some ( TonicBuckets {
252
- offset : dp. positive_bucket . offset ,
253
- bucket_counts : dp. positive_bucket . counts . clone ( ) ,
252
+ offset : dp. positive_bucket ( ) . offset ( ) ,
253
+ bucket_counts : dp. positive_bucket ( ) . counts ( ) . collect ( ) ,
254
254
} ) ,
255
255
negative : Some ( TonicBuckets {
256
- offset : dp. negative_bucket . offset ,
257
- bucket_counts : dp. negative_bucket . counts . clone ( ) ,
256
+ offset : dp. negative_bucket ( ) . offset ( ) ,
257
+ bucket_counts : dp. negative_bucket ( ) . counts ( ) . collect ( ) ,
258
258
} ) ,
259
259
flags : TonicDataPointFlags :: default ( ) as u32 ,
260
260
exemplars : dp. exemplars ( ) . map ( Into :: into) . collect ( ) ,
261
- min : dp. min . map ( Numeric :: into_f64) ,
262
- max : dp. max . map ( Numeric :: into_f64) ,
263
- zero_threshold : dp. zero_threshold ,
261
+ min : dp. min ( ) . map ( Numeric :: into_f64) ,
262
+ max : dp. max ( ) . map ( Numeric :: into_f64) ,
263
+ zero_threshold : dp. zero_threshold ( ) ,
264
264
} )
265
265
. collect ( ) ,
266
- aggregation_temporality : TonicTemporality :: from ( hist. temporality ) . into ( ) ,
266
+ aggregation_temporality : TonicTemporality :: from ( hist. temporality ( ) ) . into ( ) ,
267
267
}
268
268
}
269
269
}
@@ -278,15 +278,15 @@ pub mod tonic {
278
278
. data_points ( )
279
279
. map ( |dp| TonicNumberDataPoint {
280
280
attributes : dp. attributes ( ) . map ( Into :: into) . collect ( ) ,
281
- start_time_unix_nano : to_nanos ( sum. start_time ) ,
282
- time_unix_nano : to_nanos ( sum. time ) ,
281
+ start_time_unix_nano : to_nanos ( sum. start_time ( ) ) ,
282
+ time_unix_nano : to_nanos ( sum. time ( ) ) ,
283
283
exemplars : dp. exemplars ( ) . map ( Into :: into) . collect ( ) ,
284
284
flags : TonicDataPointFlags :: default ( ) as u32 ,
285
- value : Some ( dp. value . into ( ) ) ,
285
+ value : Some ( dp. value ( ) . into ( ) ) ,
286
286
} )
287
287
. collect ( ) ,
288
- aggregation_temporality : TonicTemporality :: from ( sum. temporality ) . into ( ) ,
289
- is_monotonic : sum. is_monotonic ,
288
+ aggregation_temporality : TonicTemporality :: from ( sum. temporality ( ) ) . into ( ) ,
289
+ is_monotonic : sum. is_monotonic ( ) ,
290
290
}
291
291
}
292
292
}
@@ -301,11 +301,11 @@ pub mod tonic {
301
301
. data_points ( )
302
302
. map ( |dp| TonicNumberDataPoint {
303
303
attributes : dp. attributes ( ) . map ( Into :: into) . collect ( ) ,
304
- start_time_unix_nano : gauge. start_time . map ( to_nanos) . unwrap_or_default ( ) ,
305
- time_unix_nano : to_nanos ( gauge. time ) ,
304
+ start_time_unix_nano : gauge. start_time ( ) . map ( to_nanos) . unwrap_or_default ( ) ,
305
+ time_unix_nano : to_nanos ( gauge. time ( ) ) ,
306
306
exemplars : dp. exemplars ( ) . map ( Into :: into) . collect ( ) ,
307
307
flags : TonicDataPointFlags :: default ( ) as u32 ,
308
- value : Some ( dp. value . into ( ) ) ,
308
+ value : Some ( dp. value ( ) . into ( ) ) ,
309
309
} )
310
310
. collect ( ) ,
311
311
}
@@ -322,9 +322,9 @@ pub mod tonic {
322
322
. filtered_attributes ( )
323
323
. map ( |kv| ( & kv. key , & kv. value ) . into ( ) )
324
324
. collect ( ) ,
325
- time_unix_nano : to_nanos ( ex. time ) ,
326
- span_id : ex. span_id . into ( ) ,
327
- trace_id : ex. trace_id . into ( ) ,
325
+ time_unix_nano : to_nanos ( ex. time ( ) ) ,
326
+ span_id : ex. span_id ( ) . into ( ) ,
327
+ trace_id : ex. trace_id ( ) . into ( ) ,
328
328
value : Some ( ex. value . into ( ) ) ,
329
329
}
330
330
}
0 commit comments