[−][src]Trait glean_core::metrics::MetricType
A MetricType
describes common behavior across all metrics.
Required methods
fn meta(&self) -> &CommonMetricData
Access the stored metadata
fn meta_mut(&mut self) -> &mut CommonMetricData
Access the stored metadata mutable
Provided methods
fn should_record(&self, glean: &Glean) -> bool
Whether this metric should currently be recorded
This depends on the metrics own state, as determined by its metadata, and whether upload is enabled on the Glean object.