Glean debug ping viewer doesn't work if debug tag is too long - should have input validation on the debug tag
Categories
(Toolkit :: Telemetry, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: Gijs, Assigned: Gijs)
References
Details
Attachments
(1 external file)
(Please fix the summary. I don't know what's wrong.)
STR:
- open about:glean
- set custom identifier to something (I picked
gijs-glean-dumb-test, ymmv). - change dropdown to
events - do some stuff that creates events
- click "apply settings and submit ping"
- check https://debug-ping-preview.firebaseapp.com/pings/gijs-glean-dumb-test
- do some more stuff that creates events
- check https://debug-ping-preview.firebaseapp.com/pings/gijs-glean-dumb-test some more
- wait an hour or two
- check https://debug-ping-preview.firebaseapp.com/pings/gijs-glean-dumb-test some more, doubting yourself
ER:
in step 6/8/10: see data
AR:
no data
I don't know how to debug this but I can try to remember not to shut down nightly for a bit in case there are debug steps that can help explain why this isn't working. On this nightly, datareporting.healthreport.uploadEnabled is set to true so that's not it...
Comment 1•2 years ago
|
||
Weird, you should be seeing a bunch of "baseline" pings in there with your debug tag, even if "events" pings weren't being manually triggered...
AH. Debug view tags need to be between 1 and 20 characters long according to the docs. gijs-glean-dumb-test is 21 characters long.
This is similar to another problem we had recently where someone added (via envvar) a debug tag with a in it.
I can't catch the envvar one (we do have logging, but it's usually turned off by the application), but I can put validation in about:glean. And for now, if you lop a char or two off the end you should be sorted. Sorry about this!
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
| Assignee | ||
Comment 3•2 years ago
|
||
It would probably also be nice if the glean page for the tag also had some variation of "hey by the way this tag isn't valid so there will never be results here, kthxbye" but I don't know where the code lives so I can't submit a PR for that...
Comment 4•2 years ago
|
||
The bug-shaped icon at the top-right of the debug ping viewer links to https://github.com/mozilla/debug-ping-view/issues
| Assignee | ||
Comment 5•2 years ago
|
||
(In reply to Chris H-C :chutten from comment #4)
The bug-shaped icon at the top-right of the debug ping viewer links to https://github.com/mozilla/debug-ping-view/issues
Thanks for pointing this out. I don't know enough about firebase + react to help, unfortunately. I noticed https://github.com/mozilla/debug-ping-view/issues/32 and will add this to the see also here, but honestly I'm not in a position to figure out how to fix that issue. :-(
Comment 9•2 years ago
|
||
| bugherder | ||
Description
•