Closed
Bug 1682980
Opened 4 years ago
Closed 4 years ago
Glinter should lint on metric categories, metric names, labels, reasons, and ping names being "too short"
Categories
(Data Platform and Tools :: Glean: SDK, defect, P1)
Data Platform and Tools
Glean: SDK
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: chutten, Assigned: mdroettboom)
Details
Attachments
(1 file)
I was thinking maybe Glinter should complain if your strings are too short.
Here's some WAGs to get us started:
- Metric Category: Min length 2 (I can definitely think of one of length three (
gfx
), so 2 might be sensible) - Metric Names: Min length 3 (English has the meaningful word
now
of length 3, so we shouldn't forbid it) - Labels: Min length 2 (Again, I can think of length three (
sun
,eOK
)) - Reasons: Min length 2 (similar reasons)
- Ping names: Min length 3 (check with ingestion if there's limits on their side)
Thoughts?
Updated•4 years ago
|
Priority: P3 → P2
Whiteboard: [telemetry:glean-rs:m?]
Assignee | ||
Updated•4 years ago
|
Assignee: nobody → mdroettboom
Comment 1•4 years ago
|
||
Updated•4 years ago
|
Priority: P2 → P1
Assignee | ||
Comment 2•4 years ago
|
||
Given that the PR ended in a discussion about some legitimate uses for 2-character names (os
), I'm inclined to think this is more trouble than worth and WONTFIX. But also could be persuaded otherwise...
Flags: needinfo?(chutten)
Reporter | ||
Comment 3•4 years ago
|
||
Sure. We can always open another of these later if we find negative examples we want to prevent. (maybe category.name should be a combined minimum of six, and we can get really opinionated about ping names).
Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(chutten)
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•