Closed Bug 1671276 Opened 2 years ago Closed 2 years ago

support Breadcrumbs crash annotation

Categories

(Socorro :: Webapp, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: willkg, Assigned: willkg)

Details

Attachments

(1 file)

The Android Components crash reporter can send a Breadcrumbs annotation:

https://hg.mozilla.org/mozilla-central/file/tip/toolkit/crashreporter/CrashAnnotations.yaml#l168

We should support this in the Crash Stats interface.

I haven't looked at the data, but I'd bet it's PII and shouldn't be public. I don't know where in the Crash Stats interface we should put this. Maybe below the stack trace on the report view Details tab.

Making this a P2 to look at soon.

Assignee: nobody → willkg
Status: NEW → ASSIGNED
Priority: -- → P2

Breadcrumbs annotation is a JSON-encoded string that decodes to a list. Here's an example item:

{
    'timestamp': '2021-01-07T16:09:31',
    'message': 'onCreate()',
    'category': 'HomeActivity',
    'level': 'Info',
    'type': 'Default',
    'data': {
        'recreated': 'false',
        'intent': 'android.intent.action.MAIN',
        'instance': '197508829'
    }
}

We mimicked what the Sentry client sends Sentry. I'll look at how Sentry displays it and probably do something similar and put it under the stack on the Details page.

I will mark it as protected data.

I won't make it searchable in this bug. We can do that in a different bug if someone has use cases for searching this data.

Sentry's Breadcrumbs documentation: https://develop.sentry.dev/sdk/event-payloads/breadcrumbs/

While working on things, I noticed that Sentry has an additional intermediary "values". I added handling for both forms and normalizes to breadcrumbs -> list of items.

I pushed this to prod just now in bug #1686730.

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.