Closed Bug 1702509 Opened 3 years ago Closed 2 years ago

Add an annotation to describe how a crash report was submitted

Categories

(Toolkit :: Crash Reporting, enhancement)

Unspecified
All
enhancement

Tracking

()

RESOLVED FIXED
101 Branch
Tracking Status
firefox101 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

Details

Attachments

(1 file)

We currently have only one annotation describing how a crash report was submitted, it's SubmittedFromInfobar and its name suggests that it is present when a crash report was submitted by clicking on the infobar (which typically happens for unsubmitted crashes in the nightly channel). This isn't entirely true however as all crashes that are auto-submitted are also flagged with SubmittedFromInfobar.

To get better visibility into where our crashes are coming from I suggest replacing that annotation with another that has multiple value. Let's call it SubmittedFrom, it could have the following values:

  1. Auto - the user had opted-in to auto-submission and this was sent that way
  2. Infobar - the user clicked on the infobar to submit the crash
  3. AboutCrashes - the user sent the crash from the about:crashes page
  4. CrashedTab - the user sent the crash from a crashed tab page
  5. Client - the user sent the crash using the crash reporter client

CC'ing some people who might be interested. The idea here is to get better visibility into where our crashes are coming from, especially in a post-Fission world and when dealing with processes that have no direct way of submitting crash reports (GPU process, socket process, etc...). If you think that the list above should be expanded just let me know about it.

I would love to have this. Huge +1 from me.

Assignee: nobody → gsvelto
Status: NEW → ASSIGNED

Comment on attachment 9271302 [details]
Bug 1702509 - Add an annotation describing how a crash report was submitted r=KrisWright

  1. What questions will you answer with this data?

From where are crashes being submitted? Which are the reporters that work and which are those that don't? Are crashes being correctly sent from all reporters? This should also help detect issues like bug 1693815 comment 15.

  1. Why does Mozilla need to answer these questions? Are there benefits for users? Do we need this information to address product or business requirements? Some example responses:

We want to evaluate how effective are the various ways of reporting crashes and we want to monitor their effectiveness. This is for the sake of ensuring the browser's stability.

  1. What alternative methods did you consider to answer these questions? Why were they not sufficient?

We already had the SubmittedFromInfobar crash annotation but it covered only one way the users have to submit crash reports, there's four more that weren't covered. This change removes that annotation as it's superseded by the new SubmittedFrom one.

  1. Can current instrumentation answer these questions?

No, we can only guess what mechanism was used in most cases.

  1. List all proposed measurements and indicate the category of data collection for each measurement, using the Firefox data collection categories found on the Mozilla wiki.
Measurement Description Data Collection Category Tracking Bug #
SubmittedFrom annotation Category 2: Interaction data 1702509
  1. Please provide a link to the documentation for this data collection which describes the ultimate data set in a public, complete, and accurate way.

The annotation description is provided in CrashAnnotations.yaml

  1. How long will this data be collected? Choose one of the following:

The crash reporting working group wants to permanently monitor this data

  1. What populations will you measure?

All Firefox users across all release channels in all locales

  1. If this data collection is default on, what is the opt-out mechanism for users?

As with everything crash reporting this is strictly opt-in, opt-out is the default in this case

  1. Please provide a general description of how you will analyze this data.

We'll monitor the numbers on crash-stats.mozilla.org to figure out how the various reporters are doing.

  1. Where do you intend to share the results of your analysis?

Within the crash reporting working group. We have MLs and Matrix channels where we'll discuss this data.

  1. Is there a third-party tool (i.e. not Glean or Telemetry) that you are proposing to use for this data collection? If so:

No, this will use the normal crash reporting pipeline and won't go into telemetry.

Attachment #9271302 - Flags: data-review?(willkg)

Comment on attachment 9271302 [details]
Bug 1702509 - Add an annotation describing how a crash report was submitted r=KrisWright

  1. Is there or will there be documentation that describes the schema for the ultimate data set available publicly, complete and accurate?

Yes--CrashAnnotations.yaml.

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

Yes. Crash reporting is opt-out by default.

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

This isn't necessary for crash report annotations.

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

Category 2: interaction.

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

default-off

  1. Does the instrumentation include the addition of any new identifiers?

No.

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

Yes.

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

No.

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

No.

Attachment #9271302 - Flags: data-review?(willkg) → data-review+
Pushed by gsvelto@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5382bd66d8f7
Add an annotation describing how a crash report was submitted r=KrisWright
Regressions: 1765492

I've identified the problem: I let an unrelated change slip in the patch and it was the cause of the intermittent. I'll reland the patch with the changes removed.

Flags: needinfo?(gsvelto)
Pushed by gsvelto@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ac56b5d2c58e
Add an annotation describing how a crash report was submitted r=KrisWright
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 101 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: