Skip to content

Commit 9163031

Browse files
Update must_use message from suggestion
Co-authored-by: Cijo Thomas <[email protected]>
1 parent 38bc698 commit 9163031

File tree

1 file changed

+1
-1
lines changed
  • opentelemetry/src/metrics/instruments

1 file changed

+1
-1
lines changed

opentelemetry/src/metrics/instruments/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ impl<T> fmt::Debug for HistogramBuilder<'_, T> {
241241
pub type Callback<T> = Box<dyn Fn(&dyn AsyncInstrument<T>) + Send + Sync>;
242242

243243
/// Configuration for building an async instrument.
244-
#[must_use = "AsyncInstrumentBuilder must be built to receive callbacks."]
244+
#[must_use = "Callbacks will not be invoked unless you call .build() on this async instrument builder."]
245245
#[non_exhaustive] // We expect to add more configuration fields in the future
246246
pub struct AsyncInstrumentBuilder<'a, I, M> {
247247
/// Instrument provider is used to create the instrument.

0 commit comments

Comments
 (0)