Module glean_core::traits
source · Expand description
API definitions for the different metric types supported by the Glean SDK.
Individual metric types implement this trait to expose the specific metrics API. It can be used by wrapping implementations to guarantee API conformance.
Structs§
- This type represents all possible errors that can occur when serializing or deserializing an object from/to JSON.
Enums§
- The possible errors when parsing to an extra key.
- Different kinds of histograms.
- Default of no extra keys for events.
Traits§
- A description for the
BooleanMetrictype. - A description for the
CounterMetrictype. - A description for the
CustomDistributionMetrictype. - A description for the
DatetimeMetrictype. - A description for the
DualLabeledCounterMetrictype. - A description for the
EventMetrictype. - Extra keys for events.
- A description for the
LabeledMetrictype. - A description for the
MemoryDistributionMetrictype. - A description for the
NumeratorMetricsubtype of theRateMetrictype. - An object that can be serialized into JSON.
- A description for the
PingTypetype. - A description for the
QuantityMetrictype. - A description for the
RateMetrictype. - A description for the
StringMetrictype. - A description for the
StringListMetrictype. - A description for the
TextMetrictype. - A description for the
TimespanMetrictype. - A description for the
TimingDistributionMetrictype. - A description for the
UrlMetrictype. - A description for the
UuidMetrictype.