We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
must_use
1 parent 38bc698 commit 9163031Copy full SHA for 9163031
opentelemetry/src/metrics/instruments/mod.rs
@@ -241,7 +241,7 @@ impl<T> fmt::Debug for HistogramBuilder<'_, T> {
241
pub type Callback<T> = Box<dyn Fn(&dyn AsyncInstrument<T>) + Send + Sync>;
242
243
/// Configuration for building an async instrument.
244
-#[must_use = "AsyncInstrumentBuilder must be built to receive callbacks."]
+#[must_use = "Callbacks will not be invoked unless you call .build() on this async instrument builder."]
245
#[non_exhaustive] // We expect to add more configuration fields in the future
246
pub struct AsyncInstrumentBuilder<'a, I, M> {
247
/// Instrument provider is used to create the instrument.
0 commit comments