Skip to content

Commit d46cc1d

Browse files
committed
Remove documentation for asynchronous instruments
1 parent 39dc8aa commit d46cc1d

File tree

4 files changed

+0
-20
lines changed

4 files changed

+0
-20
lines changed

opentelemetry/src/metrics/instruments/counter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ impl<T> Counter<T> {
3333
}
3434

3535
/// An async instrument that records increasing values.
36-
///
37-
/// [`ObservableCounter`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableCounter`]s for the same instrument.
3836
#[derive(Clone)]
3937
#[non_exhaustive]
4038
pub struct ObservableCounter<T> {

opentelemetry/src/metrics/instruments/gauge.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ impl<T> Gauge<T> {
3333
}
3434

3535
/// An async instrument that records independent readings.
36-
///
37-
/// [`ObservableGauge`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableGauge`]s for the same instrument.
3836
#[derive(Clone)]
3937
#[non_exhaustive]
4038
pub struct ObservableGauge<T> {

opentelemetry/src/metrics/instruments/up_down_counter.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ impl<T> UpDownCounter<T> {
3636
}
3737

3838
/// An async instrument that records increasing or decreasing values.
39-
///
40-
/// [`ObservableUpDownCounter`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableUpDownCounter`]s for the same instrument.
4139
#[derive(Clone)]
4240
#[non_exhaustive]
4341
pub struct ObservableUpDownCounter<T> {

opentelemetry/src/metrics/meter.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,6 @@ impl Meter {
329329
}
330330

331331
/// creates an instrument builder for recording increasing values via callback.
332-
///
333-
/// [`ObservableCounter`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableCounter`]s for the same instrument.
334332
pub fn u64_observable_counter(
335333
&self,
336334
name: impl Into<Cow<'static, str>>,
@@ -339,8 +337,6 @@ impl Meter {
339337
}
340338

341339
/// creates an instrument builder for recording increasing values via callback.
342-
///
343-
/// [`ObservableCounter`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableCounter`]s for the same instrument.
344340
pub fn f64_observable_counter(
345341
&self,
346342
name: impl Into<Cow<'static, str>>,
@@ -369,8 +365,6 @@ impl Meter {
369365
}
370366

371367
/// creates an instrument builder for recording changes of a value via callback.
372-
///
373-
/// [`ObservableUpDownCounter`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableUpDownCounter`]s for the same instrument.
374368
pub fn i64_observable_up_down_counter(
375369
&self,
376370
name: impl Into<Cow<'static, str>>,
@@ -379,8 +373,6 @@ impl Meter {
379373
}
380374

381375
/// creates an instrument builder for recording changes of a value via callback.
382-
///
383-
/// [`ObservableUpDownCounter`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableUpDownCounter`]s for the same instrument.
384376
pub fn f64_observable_up_down_counter(
385377
&self,
386378
name: impl Into<Cow<'static, str>>,
@@ -419,8 +411,6 @@ impl Meter {
419411
}
420412

421413
/// creates an instrument builder for recording the current value via callback.
422-
///
423-
/// [`ObservableGauge`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableGauge`]s for the same instrument.
424414
pub fn u64_observable_gauge(
425415
&self,
426416
name: impl Into<Cow<'static, str>>,
@@ -429,8 +419,6 @@ impl Meter {
429419
}
430420

431421
/// creates an instrument builder for recording the current value via callback.
432-
///
433-
/// [`ObservableGauge`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableGauge`]s for the same instrument.
434422
pub fn i64_observable_gauge(
435423
&self,
436424
name: impl Into<Cow<'static, str>>,
@@ -439,8 +427,6 @@ impl Meter {
439427
}
440428

441429
/// creates an instrument builder for recording the current value via callback.
442-
///
443-
/// [`ObservableGauge`] can be cloned to create multiple handles to the same instrument. Avoid creating duplicate [`ObservableGauge`]s for the same instrument.
444430
pub fn f64_observable_gauge(
445431
&self,
446432
name: impl Into<Cow<'static, str>>,

0 commit comments

Comments
 (0)