Closed Bug 1964092 Opened 17 days ago Closed 5 days ago

Add JSLargeAllocationFailure and JSOutOfMemory to the crash ping

Categories

(Toolkit :: Crash Reporting, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: mgaudet, Assigned: mgaudet)

Details

Attachments

(3 files)

Apparently this will need (thanks Alex)

  1. Data review (though strictly speaking this is technical data that we'd 100% gather via other means)
  2. Somehow plumbing from RecordAnnotationCString to the ping.

I have the "change the YAML" file written... unless that's actually not necessary because https://searchfox.org/mozilla-central/source/toolkit/crashreporter/nsExceptionHandler.cpp#1332-1366 does all the work.

FWIW the data review can be self-administered with the data-classification-low tag on Phabricator (by your reviewers). I agree that it's technical data and should be fine in the ping.

The plumbing involved is to add associated glean metrics and populate them with the annotation value. This is fairly straightforward (though we really would like it to be simpler with bug 1950749), and I have docs linking to the pertinent locations in bug 1959435, they just haven't landed yet.

To be clear is the plumbing necessary on the server data-ingest side or report generation? it's not entirely clear reading those bugs. (Admittedly part of the problem being I can't tell how annotations are treated the same or differently for pings in the crash reporter code)

It's all on the client/generation side. The annotations are stripped down to those with the appropriate scope when creating a ping. You don't need to worry about that particular distinction, you just need to ensure it gets set in the Glean ping metrics.

Assignee: nobody → mgaudet
Attachment #9485087 - Attachment description: WIP: Bug 1964092 - Change scope for JSLargeAllocationFailure and JSOutOfMemory crash annotation to put it in pings → Bug 1964092 - Change scope for JSLargeAllocationFailure and JSOutOfMemory crash annotation to put it in pings r?afranchuk
Status: NEW → ASSIGNED
Pushed by mgaudet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5c64990dcea1 Change scope for JSLargeAllocationFailure and JSOutOfMemory crash annotation to put it in pings r=afranchuk https://hg.mozilla.org/integration/autoland/rev/e259116728ce Add JSLargeAllocationFailure and JSOutOfMemory to desktop crash pings r=afranchuk https://hg.mozilla.org/integration/autoland/rev/1bc29dd1883a Add JSLargeAllocationFailure and JSOutOfMemory to fenix crash pings r=afranchuk,android-reviewers,nalexander
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: