Trait aws_smithy_observability_otel::meter::Meter
pub trait Meter: Send + Sync + Debug {
// Required methods
fn create_gauge(
&self,
name: String,
callback: Box<dyn Fn(&dyn AsyncMeasure<Value = f64>) + Sync + Send>,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn AsyncMeasure<Value = f64>>;
fn create_up_down_counter(
&self,
name: String,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn UpDownCounter>;
fn create_async_up_down_counter(
&self,
name: String,
callback: Box<dyn Fn(&dyn AsyncMeasure<Value = i64>) + Sync + Send>,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn AsyncMeasure<Value = i64>>;
fn create_monotonic_counter(
&self,
name: String,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn MonotonicCounter>;
fn create_async_monotonic_counter(
&self,
name: String,
callback: Box<dyn Fn(&dyn AsyncMeasure<Value = u64>) + Sync + Send>,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn AsyncMeasure<Value = u64>>;
fn create_histogram(
&self,
name: String,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn Histogram>;
}
Available on non-PowerPC only.
Expand description
The entry point to creating instruments. A grouping of related metrics.
Required Methods§
fn create_gauge(
&self,
name: String,
callback: Box<dyn Fn(&dyn AsyncMeasure<Value = f64>) + Sync + Send>,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn AsyncMeasure<Value = f64>>
fn create_gauge( &self, name: String, callback: Box<dyn Fn(&dyn AsyncMeasure<Value = f64>) + Sync + Send>, units: Option<String>, description: Option<String>, ) -> Arc<dyn AsyncMeasure<Value = f64>>
Create a new Gauge.
fn create_up_down_counter(
&self,
name: String,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn UpDownCounter>
fn create_up_down_counter( &self, name: String, units: Option<String>, description: Option<String>, ) -> Arc<dyn UpDownCounter>
Create a new UpDownCounter.
fn create_async_up_down_counter(
&self,
name: String,
callback: Box<dyn Fn(&dyn AsyncMeasure<Value = i64>) + Sync + Send>,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn AsyncMeasure<Value = i64>>
fn create_async_up_down_counter( &self, name: String, callback: Box<dyn Fn(&dyn AsyncMeasure<Value = i64>) + Sync + Send>, units: Option<String>, description: Option<String>, ) -> Arc<dyn AsyncMeasure<Value = i64>>
Create a new AsyncUpDownCounter.
fn create_monotonic_counter(
&self,
name: String,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn MonotonicCounter>
fn create_monotonic_counter( &self, name: String, units: Option<String>, description: Option<String>, ) -> Arc<dyn MonotonicCounter>
Create a new MonotonicCounter.
fn create_async_monotonic_counter(
&self,
name: String,
callback: Box<dyn Fn(&dyn AsyncMeasure<Value = u64>) + Sync + Send>,
units: Option<String>,
description: Option<String>,
) -> Arc<dyn AsyncMeasure<Value = u64>>
fn create_async_monotonic_counter( &self, name: String, callback: Box<dyn Fn(&dyn AsyncMeasure<Value = u64>) + Sync + Send>, units: Option<String>, description: Option<String>, ) -> Arc<dyn AsyncMeasure<Value = u64>>
Create a new AsyncMonotonicCounter.