Add the ability to record default pref values in TelemetryEnvironment.jsm
Categories
(Toolkit :: Telemetry, enhancement, P3)
Tracking
()
People
(Reporter: mkaply, Assigned: mkaply)
References
Details
(Whiteboard: [measurement:client])
Attachments
(1 file, 2 obsolete files)
|
4.25 KB,
patch
|
chutten
:
review+
|
Details | Diff | Splinter Review |
| Assignee | ||
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
| Assignee | ||
Comment 3•9 years ago
|
||
Comment 4•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
| Assignee | ||
Comment 5•9 years ago
|
||
| Assignee | ||
Comment 6•9 years ago
|
||
Comment 7•9 years ago
|
||
| Assignee | ||
Comment 8•9 years ago
|
||
Comment 9•9 years ago
|
||
| bugherder | ||
Updated•8 years ago
|
Comment 11•6 years ago
|
||
The language in this patch keeps tripping me up and I want to make sure I understand it.
The comment in TelemetryEnvironment.jsm for RECORD_DEFAULTPREF_VALUE says:
We only record default pref if set
I believe what RECORD_DEFAULTPREF_VALUE actually does is to record any active value for the pref, irrespective of branch -- if a value is set on the user branch, the user branch value will be reported.
If that's right, I want to land a followup to clarify. :chutten, am I reading this right? https://searchfox.org/mozilla-central/rev/652014ca1183c56bc5f04daf01af180d4e50a91c/toolkit/components/telemetry/app/TelemetryEnvironment.jsm#1291-1325
Comment 12•6 years ago
|
||
From my reading of the code it will record a value from any branch so long as its value isn't invalid. If it's set on any branch, it'll report either the value or the state (respectively).
I'm... not sure what mkaply meant by the comment. ni?mkaply for comment.
| Assignee | ||
Comment 13•6 years ago
|
||
Yeah, I'm not sure exactly what I meant there either.
But you are correct looking at the code.
We record the value of the preference whether it be a default or user preference.
Originally the code explicitly checked for prefhasuservalue and bailed.
So the commend should say
// Record the value even if it is default only
or something like that
Description
•