Skip to content

Commit 6fa881c

Browse files
committed
Code changes
1 parent 034d853 commit 6fa881c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

opentelemetry/src/global/metrics.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ static GLOBAL_METER_PROVIDER: Lazy<RwLock<GlobalMeterProvider>> =
1212
/// Sets the given [`MeterProvider`] instance as the current global meter
1313
/// provider.
1414
///
15-
/// **Note:** This function should be called before getting [`Meter`] instances via [`meter()`] or [`meter_with_scope()`]. Otherwise, you could get no-op [`Meter`] instances.
15+
/// **NOTE:** This function should be called before getting [`Meter`] instances via [`meter()`] or [`meter_with_scope()`]. Otherwise, you could get no-op [`Meter`] instances.
1616
pub fn set_meter_provider<P>(new_provider: P)
1717
where
1818
P: metrics::MeterProvider + Send + Sync + 'static,
@@ -37,7 +37,7 @@ pub fn meter_provider() -> GlobalMeterProvider {
3737
///
3838
/// This is a more convenient way of expressing `global::meter_provider().meter(name)`.
3939
///
40-
/// **Note:** Calls to [`meter()`] return a [`Meter`] backed by the global [`MeterProvider`] configured during the method invocation.
40+
/// **NOTE:** Calls to [`meter()`] return a [`Meter`] backed by the global [`MeterProvider`] configured during the method invocation.
4141
/// If the global [`MeterProvider`] is changed after getting [`Meter`] instances from these calls, the [`Meter`] instances returned will not reflect the change.
4242
pub fn meter(name: &'static str) -> Meter {
4343
meter_provider().meter(name)
@@ -47,7 +47,7 @@ pub fn meter(name: &'static str) -> Meter {
4747
///
4848
/// This is a simpler alternative to `global::meter_provider().meter_with_scope(...)`
4949
///
50-
/// **Note:** Calls to [`meter_with_scope()`] return a [`Meter`] backed by the global [`MeterProvider`] configured during the method invocation.
50+
/// **NOTE:** Calls to [`meter_with_scope()`] return a [`Meter`] backed by the global [`MeterProvider`] configured during the method invocation.
5151
/// If the global [`MeterProvider`] is changed after getting [`Meter`] instances from these calls, the [`Meter`] instances returned will not reflect the change.
5252
///
5353
/// # Example

0 commit comments

Comments
 (0)