Closed Bug 1483477 Opened 8 years ago Closed 5 years ago

Consider suppressing Environment changes when the values in the Environment don't change

Categories

(Toolkit :: Telemetry, defect, P1)

defect
Points:
2

Tracking

()

RESOLVED FIXED
84 Branch
Tracking Status
firefox84 --- fixed

People

(Reporter: chutten, Assigned: chutten)

References

Details

Attachments

(2 files, 1 obsolete file)

There are theoretical situations where the code in TelemetryEnvironment will notify listeners that the Environment has changed when the data in the old and new environment match. For instance, if the user changes their homepage url from mozilla.org to firefox.com it triggers TelemetryEnvironment's pref listener which then transmits a pref-changed environment change even though the userPref for "browser.startup.homepage" didn't change (it went from "<user-set>" to "<user-set"). There are five such prefs. It might be worth looking in to how many "environment-change" pings have identical Environment values to see if it is worth reducing the number of pings sent with that reason.
Discuss
Flags: needinfo?(jrediger)
Flags: needinfo?(gfritzsche)
Flags: needinfo?(alessio.placitelli)
(In reply to Chris H-C :chutten from comment #0) > For instance, if the user changes their homepage url from mozilla.org to > firefox.com it triggers TelemetryEnvironment's pref listener which then > transmits a pref-changed environment change even though the userPref for > "browser.startup.homepage" didn't change (it went from "<user-set>" to > "<user-set"). There are five such prefs. I think this might be a legit behaviour, as there is a change in the environment even if we cannot report *which* thing changed, due to privacy. Now, the question is: do we care about reporting *which* pref changed? > It might be worth looking in to how many "environment-change" pings have > identical Environment values to see if it is worth reducing the number of > pings sent with that reason. good point!
Flags: needinfo?(alessio.placitelli)
I wonder if there is any need for sending the "main" / "environment-change" ping at all. We should probably look at whether removing it has impact on: - data jobs - data analysis / data scientists - data latency
Flags: needinfo?(gfritzsche)
If there is no additional info carried in the generated ping then I don't see a good reason to send it. If we can verify the number of those low-information pings in existing data, then let's do that!
Flags: needinfo?(jrediger)
The next step required is analysis on frequency of environment-changes and effects on latency.
Points: --- → 2
Priority: -- → P2
From calling this out in the monday meeting, for potentially removing "environment-change" it seems that further discussion is required with at least the data platform team. A point brought up is "every ping should have the exact environment it works in". Removing the "environment-change" pings where no sent data actually changed is more actionable, so we should probably focus this bug on that part.
Priority: P2 → P3
Attachment #9059376 - Attachment is obsolete: true
Attachment #9059376 - Attachment is obsolete: false
Attachment #9059376 - Attachment is obsolete: true

I'm not sure of the ramifications of suppressing them immediately, so let's
just count them for now.

Assignee: nobody → chutten
Status: NEW → ASSIGNED
Priority: P3 → P1
Attached file data collection review
Attachment #9182997 - Flags: data-review?(tdsmith)

Comment on attachment 9182997 [details]
data collection review

We discussed in Matrix that querying this from existing telemetry is probably tractable, but data-review+ for the collection while we're chatting:

  1. Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?

Yes, in the probe definition files and the Probe Dictionary.

  1. Is there a control mechanism that allows the user to turn the data collection on and off?

Yes, the Firefox telemetry opt-out.

  1. If the request is for permanent data collection, is there someone who will monitor the data over time?

n/a

  1. Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 1, technical data.

  1. Is the data collection request for default-on or default-off?

Default-on.

  1. Does the instrumentation include the addition of any new identifiers (whether anonymous or otherwise; e.g., username, random IDs, etc. See the appendix for more details)?

No

  1. Is the data collection covered by the existing Firefox privacy notice?

Yep

  1. Does there need to be a check-in in the future to determine whether to renew the data?

It's up to :chutten!

  1. Does the data collection use a third-party collection tool?

No.

Attachment #9182997 - Flags: data-review?(tdsmith) → data-review+

The query we were discussing is https://sql.telemetry.mozilla.org/queries/75736/source, which compares environments between main pings sent with reason environment-change and the main ping for the subsequent subsession.

In a sample of a million environment-change pings, we can identify the subsequent ping for about 95% of them. About 75k (i.e. 7.5%) of the subsequent pings have the same environment as the environment-change ping.

Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2ea4f55225f2 Count how often Telemetry Environment changes aren't r=janerik

7.5% is worth a closer look. I'm pushing this measurement to make analysis easier (for instance: if we do decide to suppress these based on the criteria used on the client, what does that do to DAU?) and let's see where that takes us.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 84 Branch
Blocks: 1678148
See Also: → 1694850
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: