ToDo: Telemetry prefs
Came across this earlier this morning which lists many Telemetry prefs that I've never seen before. Cross-checked with DXR and they are indeed there. I'm left to assume that they're more hidden prefs, which I'm not very fond of. Anyway, could be nothing but what do you guys think? Inconsequential?
https://gecko.readthedocs.io/en/latest/toolkit/components/telemetry/telemetry/internals/preferences.html
--
[Edit, also note from 57 nightly]
- app.update.lastUpdateTime.telemetry_modules_ping
- browser.newtabpage.activity-stream.feeds.telemetry
- browser.newtabpage.activity-stream.telemetry
- browser.newtabpage.activity-stream.telemetry.log
- browser.newtabpage.activity-stream.telemetry.ping.endpoint
- devtools.telemetry.supported_performance_marks
- devtools.telemetry.tools.opened.version
- toolkit.telemetry.debugSlowSql
- toolkit.telemetry.previousBuildID [end edit]
Lets itemize this sucker...
Preferences
- [x] toolkit.telemetry.log.level -
default log to console only is fine - no action neededThis sets the Telemetry logging verbosity per Log.jsm, with Trace or 0 being the most verbose and the default being Warn. By default logging goes only the console service. - [x] toolkit.telemetry.log.dump -
off by default, log only to console see above - no action neededSets whether to dump Telemetry log messages to stdout too. - [x] toolkit.telemetry.shutdownPingSender.enabledFirstSession -
nothing to see, move alongAllow the shutdown ping to be sent using the ping sender from the first browsing session. - [x] toolkit.telemetry.newProfilePing.delay -
is just a timer and covered by toolkit.telemetry.newProfilePing.enabled in 0330Controls the delay after which the ../data/new-profile is sent on new profiles. - [x] toolkit.telemetry.updatePing.enabled -
see my lastcomment Enable the “update” ping on browser updates. - toolkit.telemetry.unified -
0330This controls whether unified behavior is enabled. If true:Telemetry is always enabled and recording base data. Telemetry will send additional main pings.
- toolkit.telemetry.enabled -
0330If unified is off, this controls whether the Telemetry module is enabled. If unified is on, this controls whether to record extended data. This preference is controlled through the Preferences dialog. Note that the default value here of this pref depends on the define RELEASE_OR_BETA and the channel. If RELEASE_OR_BETA is set, MOZ_TELEMETRY_ON_BY_DEFAULT gets set, which means this pref will default to true. This is overridden by the preferences code on the “beta” channel, the pref also defaults to true there. - datareporting.healthreport.uploadEnabled -
0333aSend the data we record if user has consented to FHR. This preference is controlled through the Preferences dialog. - toolkit.telemetry.archive.enabled
0330Allow pings to be archived locally. This can only be enabled if unified is on. - toolkit.telemetry.server -
0330The server Telemetry pings are sent to. - toolkit.telemetry.shutdownPingSender.enabled -
0330Allow the shutdown ping to be sent when the browser shuts down, from the second browsing session on, instead of the next restart, using the ping sender. - toolkit.telemetry.newProfilePing.enabled -
0330Enable the ../data/new-profile ping on new profiles.
Data-choices notification
Thorin says: These are just notifications, timestamps, policy versions, etc. Internals, nothing to do with actual collection and sending of said data ,and they can all be ignored IMO (except 0334 at the end which we have covered)
- [x] toolkit.telemetry.reportingpolicy.firstRun This preference is not present until the first run. After, its value is set to false. This is used to show the infobar with a more aggressive timeout if it wasn’t shown yet.
- [x] datareporting.policy.firstRunURL If set, a browser tab will be opened on first run instead of the infobar.
- [x] datareporting.policy.dataSubmissionPolicyNotifiedTime Records the date user was shown the policy. This preference is also used on Android.
- [x] datareporting.policy.dataSubmissionPolicyAcceptedVersion Records the version of the policy notified to the user. This preference is also used on Android.
- [x] datareporting.policy.dataSubmissionPolicyBypassNotification Used in tests, it allows to skip the notification check.
- [x] datareporting.policy.currentPolicyVersion Stores the current policy version, overrides the default value defined in TelemetryReportingPolicy.jsm.
- [x] datareporting.policy.minimumPolicyVersion The minimum policy version that is accepted for the current policy. This can be set per channel.
- [x] datareporting.policy.minimumPolicyVersion.channel-NAME This is the only channel-specific version that we currently use for the minimum policy version.
- datareporting.policy.dataSubmissionEnabled -
0334This is the data submission master kill switch. If disabled, no policy is shown or upload takes place, ever.
Testing [Ignore these]
The following prefs are for testing purpose only.
- toolkit.telemetry.initDelay Delay before initializing telemetry (seconds).
- toolkit.telemetry.minSubsessionLength Minimum length of a telemetry subsession and throttling time for common environment changes (seconds).
- toolkit.telemetry.collectInterval Minimum interval between data collection (seconds).
- toolkit.telemetry.scheduler.tickInterval Interval between scheduler ticks (seconds).
- toolkit.telemetry.scheduler.idleTickInterval Interval between scheduler ticks when the user is idle (seconds).
- toolkit.telemetry.idleTimeout Timeout until we decide whether a user is idle or not (seconds).
- toolkit.telemetry.modulesPing.interval Interval between “modules” ping transmissions.
- toolkit.telemetry.send.overrideOfficialCheck If true, allows sending pings on unofficial builds. Requires a restart.
- toolkit.telemetry.healthping.enabled If false, sending health pings is disabled. Defaults to true.
...
@grauenwolfe - we have telemetry locked down AFAIK. Nothing is being recorded to disk (I have checked - real time monitoring - no crash reports, no health reports, no archived pings)...
This is what I suspected but a lot of you guys have greater depth of knowledge than I do.
@grauenwolfe I asked you a Q about system add-ons - I'll repeat it here since I have your attention...
Never even saw this question, sorry about that.
Mozilla's own internal Firefox add-ons: /Applications/Firefox/Contents/Resources/browser/features **
Only exception is the "Lightweight themes" add-on: /Applications/Firefox/Contents/Resources/browser/extensions **
User installed add-ons default location: /Users/user account name/Library/Application Support/Firefox/Profiles
**Right-click on Firefox then select "Show Package Contents" in order to access application files.
Not sure how comprehensive you want this to be, but from FF57 nightly:
app.update.lastUpdateTime.telemetry_modules_ping
browser.newtabpage.activity-stream.feeds.telemetry
browser.newtabpage.activity-stream.telemetry
browser.newtabpage.activity-stream.telemetry.log
browser.newtabpage.activity-stream.telemetry.ping.endpoint
devtools.telemetry.supported_performance_marks
devtools.telemetry.tools.opened.version
toolkit.telemetry.debugSlowSql
toolkit.telemetry.previousBuildID
It takes some massaging to diff against markdown.
Quick question regarding:
0330: toolkit.telemetry.cachedClientID
I don't have an entry for this so I'm guessing that it's either (A) been deleted since there's no Telemetry data to associate it with or (B) it's hidden and just not marked as such. Also curious why it's on DXR but nowhere on Mozilla Source Tree Docs. I'm not particularly concerned, just curious.
theemimDiff != earthlngDiff
https://gecko.readthedocs.io/en/latest/search.html?q=%22client+id%22
@Thorin-Oakenpants The Mac info for system add-ons in the user.js should be:
/Applications/Firefox/Contents/Resources/browser/features
This is where pocket, aushelper, webcompat, and all that other shit is located.
The directory you listed only contains the "Lightweight themes" add-on and probably isn't really worth mentioning in the user.js other than sheer thoroughness.
In other words, just change /extensions to /features.
Question: when you do your diffs, do you include all the system addons?
No, none of the prefs that SA's or FF itself sets during runtime are included in my diffs. If you want that info you can use @Theemim's script
I just leave this link here: https://dxr.mozilla.org/mozilla-central/source/modules/libpref/Preferences.cpp#3213