Environment =========== The environment consists of data that is expected to be characteristic for performance and other behavior and not expected to change too often. Changes to most of these data points are detected (where possible and sensible) and will lead to a session split in the :doc:`main-ping`. The environment data may also be submitted by other ping types. *Note:* This is not submitted with all ping types due to privacy concerns. This and other data is inspected under the `data collection policy `_. Some parts of the environment must be fetched asynchronously at startup. We don't want other Telemetry components to block on waiting for the environment, so some items may be missing from it until the async fetching finished. This currently affects the following sections: - profile - addons Structure:: { build: { applicationId: , // nsIXULAppInfo.ID applicationName: , // "Firefox" architecture: , // e.g. "x86", build architecture for the active build architecturesInBinary: , // e.g. "i386-x86_64", from nsIMacUtils.architecturesInBinary, only present for mac universal builds buildId: , // e.g. "20141126041045" version: , // e.g. "35.0" vendor: , // e.g. "Mozilla" platformVersion: , // e.g. "35.0" xpcomAbi: , // e.g. "x86-msvc" hotfixVersion: , // e.g. "20141211.01" }, settings: { blocklistEnabled: , // true on failure isDefaultBrowser: , // null on failure, not available on Android defaultSearchEngine: , // e.g. "yahoo" defaultSearchEngineData: {, // data about the current default engine name: , // engine name, e.g. "Yahoo"; or "NONE" if no default loadPath: , // where the engine line is located; missing if no default submissionURL: // missing if no default or for user-installed engines }, e10sEnabled: , // false on failure telemetryEnabled: , // false on failure locale: , // e.g. "it", null on failure update: { channel: , // e.g. "release", null on failure enabled: , // true on failure autoDownload: , // true on failure }, userPrefs: { // Only prefs which are changed from the default value are listed // in this block "pref.name.value": value // some prefs send the value "pref.name.url": "" // For some privacy-sensitive prefs // only the fact that the value has been changed is recorded }, }, profile: { // This section is not available on Android. creationDate: , // integer days since UNIX epoch, e.g. 16446 resetDate: , // integer days since UNIX epoch, e.g. 16446 - optional }, partner: { distributionId: , // pref "distribution.id", null on failure distributionVersion: , // pref "distribution.version", null on failure partnerId: , // pref mozilla.partner.id, null on failure distributor: , // pref app.distributor, null on failure distributorChannel: , // pref app.distributor.channel, null on failure partnerNames: [ // list from prefs app.partner.= ], }, system: { memoryMB: , isWow64: , // windows-only cpu: { count: , // e.g. 8, or null on failure vendor: , // e.g. "GenuineIntel", or null on failure family: , // null on failure model: , // null on failure stepping: , // null on failure extensions: [ , ... // as applicable: // "MMX", "SSE", "SSE2", "SSE3", "SSSE3", "SSE4A", "SSE4_1", // "SSE4_2", "EDSP", "ARMv6", "ARMv7", "NEON" ], }, device: { // This section is only available on mobile devices. model: , // the "device" from FHR, null on failure manufacturer: , // null on failure hardware: , // null on failure isTablet: , // null on failure }, os: { name: , // "Windows_NT" or null on failure version: , // e.g. "6.1", null on failure kernelVersion: , // android/b2g only or null on failure servicePackMajor: , // windows only or null on failure servicePackMinor: , // windows only or null on failure locale: , // "en" or null on failure }, hdd: { profile: { // hdd where the profile folder is located model: , // windows only or null on failure revision: , // windows only or null on failure }, binary: { // hdd where the application binary is located model: , // windows only or null on failure revision: , // windows only or null on failure }, system: { // hdd where the system files are located model: , // windows only or null on failure revision: , // windows only or null on failure }, }, gfx: { D2DEnabled: , // null on failure DWriteEnabled: , // null on failure //DWriteVersion: , // temporarily removed, pending bug 1154500 adapters: [ { description: , // e.g. "Intel(R) HD Graphics 4600", null on failure vendorID: , // null on failure deviceID: , // null on failure subsysID: , // null on failure RAM: , // in MB, null on failure driver: , // null on failure driverVersion: , // null on failure driverDate: , // null on failure GPUActive: , // currently always true for the first adapter }, ... ], // Note: currently only added on Desktop. On Linux, only a single // monitor is returned representing the entire virtual screen. monitors: [ { screenWidth: , // screen width in pixels screenHeight: , // screen height in pixels refreshRate: , // refresh rate in hertz (present on Windows only) pseudoDisplay: , // networked screen (present on Windows only) scale: , // backing scale factor (present on Mac only) }, ... ], }, }, addons: { activeAddons: { // the currently enabled addons : { blocklisted: , description: , // null if not available name: , userDisabled: , appDisabled: , version: , scope: , type: , // "extension", "service", ... foreignInstall: , hasBinaryComponents: installDay: , // days since UNIX epoch, 0 on failure updateDay: , // days since UNIX epoch, 0 on failure signedState: , // whether the add-on is signed by AMO, only present for extensions }, ... }, theme: { // the active theme id: , blocklisted: , description: , name: , userDisabled: , appDisabled: , version: , scope: , foreignInstall: , hasBinaryComponents: installDay: , // days since UNIX epoch, 0 on failure updateDay: , // days since UNIX epoch, 0 on failure }, activePlugins: [ { name: , version: , description: , blocklisted: , disabled: , clicktoplay: , mimeTypes: [, ...], updateDay: , // days since UNIX epoch, 0 on failure }, ... ], activeGMPlugins: { : { version: , userDisabled: , applyBackgroundUpdates: , }, ... ], activeExperiment: { // section is empty if there's no active experiment id: , // id branch: , // branch name }, persona: , // id of the current persona, null on GONK }, } Settings -------- defaultSearchEngine ~~~~~~~~~~~~~~~~~~~ Note: Deprecated, use defaultSearchEngineData instead. Contains the string identifier or name of the default search engine provider. This will not be present in environment data collected before the Search Service initialization. The special value ``NONE`` could occur if there is no default search engine. The special value ``UNDEFINED`` could occur if a default search engine exists but its identifier could not be determined. This field's contents are ``Services.search.defaultEngine.identifier`` (if defined) or ``"other-"`` + ``Services.search.defaultEngine.name`` if not. In other words, search engines without an ``.identifier`` are prefixed with ``other-``. defaultSearchEngineData ~~~~~~~~~~~~~~~~~~~~~~~ Contains data identifying the engine currently set as the default. The object contains: - a ``name`` property with the name of the engine, or ``NONE`` if no engine is currently set as the default. - a ``loadPath`` property: an anonymized path of the engine xml file, e.g. jar:[app]/omni.ja!browser/engine.xml (where 'browser' is the name of the chrome package, not a folder) [profile]/searchplugins/engine.xml [distribution]/searchplugins/common/engine.xml [other]/engine.xml - a ``submissionURL`` property with the HTTP url we would use to search. For privacy, we don't record this for user-installed engines. ``loadPath`` and ``submissionURL`` are not present if ``name`` is ``NONE``.