Closed Bug 1305757 Opened 10 years ago Closed 10 years ago

moztelemetry: Add categorical histograms support

Categories

(Cloud Services Graveyard :: Metrics: Pipeline, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: frank, Assigned: frank)

References

Details

Attachments

(1 external file)

The histogram::Histogram class needs to read the labels from Histograms.json.
Depends on: 1305840
Blocks: 1297060
No longer blocks: 197060
No longer depends on: 1305840
Depends on: 1305840
QA Contact: fbertsch
Assignee: nobody → fbertsch
QA Contact: fbertsch
I'm not sure how to interpret the histogram_tools.Histogram.ranges() result for a categorical histogram. The Histogram.labels() returns the correct labels, but Histogram.ranges() returns a list with len(labels)+1 elements - [0, 1, ..., len(labels)]. It seems to me that the ranges() (and, by extension, Histogram.n_buckets()) should have the same length as labels. Is the current implementation correct behavior?
Flags: needinfo?(gfritzsche)
Points: --- → 2
Priority: -- → P1
Depends on: 1306303
(In reply to Frank Bertsch [:frank] from comment #1) > I'm not sure how to interpret the histogram_tools.Histogram.ranges() result > for a categorical histogram. The Histogram.labels() returns the correct > labels, but Histogram.ranges() returns a list with len(labels)+1 elements - > [0, 1, ..., len(labels)]. > > It seems to me that the ranges() (and, by extension, Histogram.n_buckets()) > should have the same length as labels. > > Is the current implementation correct behavior? The implementation is correct, we add an overflow bucket (+1 bucket) to the buckets, just like for the other enumerated & linear histograms. We could argue about whether we should, but the current behavior is expected.
Flags: needinfo?(gfritzsche)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Cloud Services → Cloud Services Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: