bug 1657947 - New metric types labeled_{custom|memory|timing}_distribution

This commit is contained in:
Chris H-C 2024-07-12 09:56:38 -04:00 коммит произвёл Chris H-C
Родитель 433169091b
Коммит 2bd34de4a1
4 изменённых файлов: 44 добавлений и 1 удалений

Просмотреть файл

@ -2,6 +2,8 @@
## Unreleased
- New Metric Types: `labeled_{custom|memory|timing}_distribution` ([bug 1657947](https://bugzilla.mozilla.org/show_bug.cgi?id=1657947))
## 14.1.3
- Fix Kotlin/Swift code generation for object metrics, now generating top-level typealiases where needed ([#722](https://github.com/mozilla/glean_parser/pull/722))

Просмотреть файл

@ -416,6 +416,15 @@ class LabeledString(Labeled, String):
class LabeledCounter(Labeled, Counter):
typename = "labeled_counter"
class LabeledCustomDistribution(Labeled, CustomDistribution):
typename = "labeled_custom_distribution"
class LabeledMemoryDistribution(Labeled, MemoryDistribution):
typename = "labeled_memory_distribution"
class LabeledTimingDistribution(Labeled, TimingDistribution):
typename = "labeled_timing_distribution"
class Rate(Metric):
typename = "rate"

Просмотреть файл

@ -115,7 +115,9 @@ definitions:
of the metric to be stored at a given set of labels. The labeled
metric types include:
`labeled_boolean`, `labeled_string`, `labeled_counter`.
`labeled_boolean`, `labeled_string`, `labeled_counter`,
`labeled_custom_distribution`, `labeled_memory_distribution`,
`labeled_timing_distribution`.
- `text`: Record long text data.
@ -141,6 +143,9 @@ definitions:
- labeled_boolean
- labeled_string
- labeled_counter
- labeled_custom_distribution
- labeled_memory_distribution
- labeled_timing_distribution
- rate
- text
- object

Просмотреть файл

@ -118,3 +118,30 @@ all_metrics:
text:
<<: *defaults
type: text
labeled_custom_distribution:
<<: *defaults
type: labeled_custom_distribution
range_min: 0
range_max: 100
bucket_count: 10
histogram_type: linear
labels:
- aLabel
- 2label
labeled_memory_distribution:
<<: *defaults
type: labeled_memory_distribution
memory_unit: kilobyte
labels:
- aLabel
- 2label
labeled_timing_distribution:
<<: *defaults
type: labeled_timing_distribution
time_unit: millisecond
labels:
- aLabel
- 2label