Module glean.metrics.labeled
Classes
class LabeledBooleanMetricType (labeled_metric_data: glean._uniffi.glean.LabeledMetricData,
labels: Set[str] | None = None)-
Expand source code
class LabeledBooleanMetricType(LabeledMetricBase): _ctor = LabeledBoolean
This implements the developer-facing API for labeled metrics.
Instances of this class type are automatically generated by
load_metrics()
, allowing developers to record values that were previously registered in the metrics.yaml file.Unlike most metric types, LabeledMetricType does not have its own corresponding storage, but records metrics for the underlying metric type T in the storage for that type. The only difference is that labeled metrics are stored with the special key
$category.$name/$label
. The collect method knows how to pull these special values back out of the individual metric storage and rearrange them correctly in the ping.Ancestors
- glean.metrics.labeled.LabeledMetricBase
class LabeledCounterMetricType (labeled_metric_data: glean._uniffi.glean.LabeledMetricData,
labels: Set[str] | None = None)-
Expand source code
class LabeledCounterMetricType(LabeledMetricBase): _ctor = LabeledCounter
This implements the developer-facing API for labeled metrics.
Instances of this class type are automatically generated by
load_metrics()
, allowing developers to record values that were previously registered in the metrics.yaml file.Unlike most metric types, LabeledMetricType does not have its own corresponding storage, but records metrics for the underlying metric type T in the storage for that type. The only difference is that labeled metrics are stored with the special key
$category.$name/$label
. The collect method knows how to pull these special values back out of the individual metric storage and rearrange them correctly in the ping.Ancestors
- glean.metrics.labeled.LabeledMetricBase
class LabeledStringMetricType (labeled_metric_data: glean._uniffi.glean.LabeledMetricData,
labels: Set[str] | None = None)-
Expand source code
class LabeledStringMetricType(LabeledMetricBase): _ctor = LabeledString
This implements the developer-facing API for labeled metrics.
Instances of this class type are automatically generated by
load_metrics()
, allowing developers to record values that were previously registered in the metrics.yaml file.Unlike most metric types, LabeledMetricType does not have its own corresponding storage, but records metrics for the underlying metric type T in the storage for that type. The only difference is that labeled metrics are stored with the special key
$category.$name/$label
. The collect method knows how to pull these special values back out of the individual metric storage and rearrange them correctly in the ping.Ancestors
- glean.metrics.labeled.LabeledMetricBase