mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-02-22 18:29:11 +00:00
130 lines
4.4 KiB
ReStructuredText
130 lines
4.4 KiB
ReStructuredText
Preferences
|
|
===========
|
|
|
|
Telemetry behaviour is controlled through the preferences listed here.
|
|
|
|
Default behaviors
|
|
-----------------
|
|
|
|
On official builds (which define ``MOZILLA_OFFICIAL``), Telemetry is only initialized when ``MOZ_TELEMETRY_REPORTING`` is defined.
|
|
Sending only happens on official builds with ``MOZ_TELEMETRY_REPORTING`` defined.
|
|
|
|
Preferences
|
|
-----------
|
|
|
|
``toolkit.telemetry.unified``
|
|
|
|
This controls whether unified behavior is enabled. If true:
|
|
|
|
* Telemetry is always enabled and recording *base* data.
|
|
* Telemetry will send additional ``main`` pings.
|
|
|
|
``toolkit.telemetry.unifiedIsOptIn``
|
|
|
|
When true, we enable the Telemetry system only for people that opted into Telemetry, even if unified Telemetry is enabled.
|
|
Defaults to false & requires a restart.
|
|
|
|
``toolkit.telemetry.optoutSample``
|
|
|
|
When true, we enable Telemetry opt-out for a sample of users when ``.unified`` and ``unifiedIsOptIn`` are on.
|
|
Defaults to false.
|
|
|
|
``toolkit.telemetry.enabled``
|
|
|
|
If ``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_BUILD`` and the channel.
|
|
If ``RELEASE_BUILD`` 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``
|
|
|
|
Send the data we record if user has consented to FHR. This preference is controlled through the `Preferences` dialog.
|
|
|
|
``toolkit.telemetry.archive.enabled``
|
|
|
|
Allow pings to be archived locally. This can only be enabled if ``unified`` is on.
|
|
|
|
``toolkit.telemetry.server``
|
|
|
|
The server Telemetry pings are sent to.
|
|
|
|
``toolkit.telemetry.log.level``
|
|
|
|
This 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.
|
|
|
|
``toolkit.telemetry.log.dump``
|
|
|
|
Sets whether to dump Telemetry log messages to ``stdout`` too.
|
|
|
|
Data-choices notification
|
|
-------------------------
|
|
|
|
``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.
|
|
|
|
``datareporting.policy.dataSubmissionEnabled``
|
|
|
|
This is the data submission master kill switch. If disabled, no policy is shown or upload takes place, ever.
|
|
|
|
``datareporting.policy.dataSubmissionEnabled.v2``
|
|
|
|
If disabled, FHR v2 data will not be sent to Mozilla servers. Telemetry v4 data submission will not be affected. This is like ``datareporting.policy.dataSubmissionEnabled``, but only affects FHR - Telemetry upload will not be disabled.
|
|
|
|
``datareporting.policy.dataSubmissionPolicyNotifiedTime``
|
|
|
|
Records the date user was shown the policy. This preference is also used on Android.
|
|
|
|
``datareporting.policy.dataSubmissionPolicyAcceptedVersion``
|
|
|
|
Records the version of the policy notified to the user. This preference is also used on Android.
|
|
|
|
``datareporting.policy.dataSubmissionPolicyBypassNotification``
|
|
|
|
Used in tests, it allows to skip the notification check.
|
|
|
|
``datareporting.policy.currentPolicyVersion``
|
|
|
|
Stores the current policy version, overrides the default value defined in TelemetryReportingPolicy.jsm.
|
|
|
|
``datareporting.policy.minimumPolicyVersion``
|
|
|
|
The minimum policy version that is accepted for the current policy. This can be set per channel.
|
|
|
|
``datareporting.policy.minimumPolicyVersion.channel-NAME``
|
|
|
|
This is the only channel-specific version that we currently use for the minimum policy version.
|
|
|
|
Testing
|
|
-------
|
|
|
|
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 (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).
|