Closed
Bug 1305757
Opened 10 years ago
Closed 10 years ago
moztelemetry: Add categorical histograms support
Categories
(Cloud Services Graveyard :: Metrics: Pipeline, defect, P1)
Cloud Services Graveyard
Metrics: Pipeline
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.
| Assignee | ||
Updated•10 years ago
|
| Assignee | ||
Updated•10 years ago
|
QA Contact: fbertsch
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → fbertsch
QA Contact: fbertsch
| Assignee | ||
Comment 1•10 years ago
|
||
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)
Updated•10 years ago
|
Points: --- → 2
Priority: -- → P1
Comment 2•10 years ago
|
||
(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)
Comment 3•10 years ago
|
||
| Assignee | ||
Updated•10 years ago
|
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Cloud Services → Cloud Services Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•