Closed Bug 1764573 Opened 2 years ago Closed 2 years ago

`glean.error.preinit_tasks_overflow` includes the count of non-overflown tasks as well as the number of tasks we dropped

Categories

(Data Platform and Tools :: Glean: SDK, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: chutten, Assigned: janerik)

Details

Attachments

(1 file)

To be useful and less confusing, I think glean.error.preinit_tasks_overflow should only count the number of tasks we didn't enqueue in the preinit queue (ie, the count of tasks that overflowed out of the queue) and not include (as it does now) the number of tasks in the queue.

If we really want to know the size of the queue, we can record that using a quantity (or we can read it out of the code by cross-referencing the sdk version).

This might be the perfect time to develop some best practices around the use of the version field in metrics.yaml.

In the meantime, I'll add a Gleannotation to highlight that the Description isn't kidding.

Assignee: nobody → jrediger
Priority: -- → P2

So I quickly looked into the history of this metric, but couldn't find any definitive answer why we report the total number of tasks and not just the number of overflowing ones.
The only justification we got for the metric itself is "We want to know not just "did it overflow" but "by how much".
But only reporting the number of overflows would explain that excatly.

I wouldn't mind us changing that metric now. It's not used externally anyway (or at least no one but us should ever look at it).
We could increase the version, though none of our tooling handles that field afaik, it also shouldn't break.

Status: NEW → RESOLVED
Closed: 2 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: