Closed Bug 1573441 Opened 5 years ago Closed 5 years ago

Create a `CustomDistributionMetricType` in glean-core

Categories

(Data Platform and Tools :: Glean: SDK, task, P1)

task

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: janerik, Assigned: janerik)

References

Details

(Whiteboard: [telemetry:glean-rs:m8])

Attachments

(1 file)

Some GeckoView histograms require a fairly custom shape of the distribution, which doesn't directly fit into the concept of "infinite binning". Additionally, some distributions do not have units or have custom units (e.g. "pixels" or "% of vsync").

We should introduce a new metric type, only usable for mapping to Gecko histograms, which allows for specifying:

  • either linear or exponential bucketing;
  • min/max range;
  • time_unit (only in the metrics.yaml, for metadata)
  • number of buckets.

Glean AC PR: https://github.com/mozilla-mobile/android-components/pull/4041

Assignee: nobody → jrediger
Priority: P3 → P1

I got a half-finished Rust implementation up here: https://github.com/mozilla/glean/compare/custom-distribution
Lacks everything except the basic implementation (and I had to duplicate few things to easily support linear and exponential histograms).

Will continue work on it when I return.

Attached file GitHub Pull Request
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: