You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Sets the given [`MeterProvider`] instance as the current global meter
17
17
/// provider.
18
+
///
19
+
/// **NOTE:** This function should be called before getting [`Meter`] instances via [`meter()`] or [`meter_with_scope()`]. Otherwise, you could get no-op [`Meter`] instances.
/// Creates a named [`Meter`] via the currently configured global [`MeterProvider`].
45
47
///
46
48
/// This is a more convenient way of expressing `global::meter_provider().meter(name)`.
49
+
///
50
+
/// **NOTE:** Calls to [`meter()`] return a [`Meter`] backed by the global [`MeterProvider`] configured during the method invocation.
51
+
/// If the global [`MeterProvider`] is changed after getting [`Meter`] instances from these calls, the [`Meter`] instances returned will not reflect the change.
/// This is a simpler alternative to `global::meter_provider().meter_with_scope(...)`
54
59
///
60
+
/// **NOTE:** Calls to [`meter_with_scope()`] return a [`Meter`] backed by the global [`MeterProvider`] configured during the method invocation.
61
+
/// If the global [`MeterProvider`] is changed after getting [`Meter`] instances from these calls, the [`Meter`] instances returned will not reflect the change.
0 commit comments