@@ -273,15 +273,15 @@ impl Meter {
273
273
pub fn u64_counter (
274
274
& self ,
275
275
name : impl Into < Cow < ' static , str > > ,
276
- ) -> InstrumentBuilder < Counter < u64 > > {
276
+ ) -> InstrumentBuilder < ' _ , Counter < u64 > > {
277
277
InstrumentBuilder :: new ( self , name. into ( ) )
278
278
}
279
279
280
280
/// creates an instrument builder for recording increasing values.
281
281
pub fn f64_counter (
282
282
& self ,
283
283
name : impl Into < Cow < ' static , str > > ,
284
- ) -> InstrumentBuilder < Counter < f64 > > {
284
+ ) -> InstrumentBuilder < ' _ , Counter < f64 > > {
285
285
InstrumentBuilder :: new ( self , name. into ( ) )
286
286
}
287
287
@@ -305,15 +305,15 @@ impl Meter {
305
305
pub fn i64_up_down_counter (
306
306
& self ,
307
307
name : impl Into < Cow < ' static , str > > ,
308
- ) -> InstrumentBuilder < UpDownCounter < i64 > > {
308
+ ) -> InstrumentBuilder < ' _ , UpDownCounter < i64 > > {
309
309
InstrumentBuilder :: new ( self , name. into ( ) )
310
310
}
311
311
312
312
/// creates an instrument builder for recording changes of a value.
313
313
pub fn f64_up_down_counter (
314
314
& self ,
315
315
name : impl Into < Cow < ' static , str > > ,
316
- ) -> InstrumentBuilder < UpDownCounter < f64 > > {
316
+ ) -> InstrumentBuilder < ' _ , UpDownCounter < f64 > > {
317
317
InstrumentBuilder :: new ( self , name. into ( ) )
318
318
}
319
319
@@ -334,17 +334,26 @@ impl Meter {
334
334
}
335
335
336
336
/// creates an instrument builder for recording independent values.
337
- pub fn u64_gauge ( & self , name : impl Into < Cow < ' static , str > > ) -> InstrumentBuilder < Gauge < u64 > > {
337
+ pub fn u64_gauge (
338
+ & self ,
339
+ name : impl Into < Cow < ' static , str > > ,
340
+ ) -> InstrumentBuilder < ' _ , Gauge < u64 > > {
338
341
InstrumentBuilder :: new ( self , name. into ( ) )
339
342
}
340
343
341
344
/// creates an instrument builder for recording independent values.
342
- pub fn f64_gauge ( & self , name : impl Into < Cow < ' static , str > > ) -> InstrumentBuilder < Gauge < f64 > > {
345
+ pub fn f64_gauge (
346
+ & self ,
347
+ name : impl Into < Cow < ' static , str > > ,
348
+ ) -> InstrumentBuilder < ' _ , Gauge < f64 > > {
343
349
InstrumentBuilder :: new ( self , name. into ( ) )
344
350
}
345
351
346
352
/// creates an instrument builder for recording independent values.
347
- pub fn i64_gauge ( & self , name : impl Into < Cow < ' static , str > > ) -> InstrumentBuilder < Gauge < i64 > > {
353
+ pub fn i64_gauge (
354
+ & self ,
355
+ name : impl Into < Cow < ' static , str > > ,
356
+ ) -> InstrumentBuilder < ' _ , Gauge < i64 > > {
348
357
InstrumentBuilder :: new ( self , name. into ( ) )
349
358
}
350
359
@@ -376,15 +385,15 @@ impl Meter {
376
385
pub fn f64_histogram (
377
386
& self ,
378
387
name : impl Into < Cow < ' static , str > > ,
379
- ) -> InstrumentBuilder < Histogram < f64 > > {
388
+ ) -> InstrumentBuilder < ' _ , Histogram < f64 > > {
380
389
InstrumentBuilder :: new ( self , name. into ( ) )
381
390
}
382
391
383
392
/// creates an instrument builder for recording a distribution of values.
384
393
pub fn u64_histogram (
385
394
& self ,
386
395
name : impl Into < Cow < ' static , str > > ,
387
- ) -> InstrumentBuilder < Histogram < u64 > > {
396
+ ) -> InstrumentBuilder < ' _ , Histogram < u64 > > {
388
397
InstrumentBuilder :: new ( self , name. into ( ) )
389
398
}
390
399
0 commit comments