Module metrics

Source
Expand description

Type definitions for Sentry metrics.

Structs§

CustomUnit
Custom user-defined units without builtin conversion.
MetricName
Optimized string represenation of a metric name.
MetricResourceIdentifier
A unique identifier for metrics including typing and namespacing.
ParseMetricError
An error returned when metrics or MRIs cannot be parsed.
ParseMetricUnitError
An error parsing a MetricUnit or one of its variants.

Enums§

DurationUnit
Time duration units used in MetricUnit::Duration.
FractionUnit
Units of fraction used in MetricUnit::Fraction.
InformationUnit
Size of information derived from bytes, used in MetricUnit::Information.
MetricNamespace
The namespace of a metric.
MetricType
The type of a MetricResourceIdentifier, determining its aggregation and evaluation.
MetricUnit
The unit of measurement of a metric value.

Functions§

can_be_valid_metric_name
Returns whether try_normalize_metric_name can normalize the passed name.
try_normalize_metric_name
Validates a metric name and normalizes it. This is the statsd name, i.e. without type or unit.