Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug 1671276: process breadcrumbs and show on details page #5650

Merged
merged 1 commit into from Jan 9, 2021
Merged

bug 1671276: process breadcrumbs and show on details page #5650

merged 1 commit into from Jan 9, 2021

Conversation

willkg
Copy link
Collaborator

@willkg willkg commented Jan 8, 2021

The crash reporter in android-components which Fenix uses captures
breadcrumbs and puts it in the Breadcrumbs annotation.

This adds a processor rule to validate it and add it to the processed
crash and then display it in the Details of the report view.

This marks it as protected data, so if you don't have access to that,
you can't see it.

This doesn't make it searchable. I decided not to deal with that until I
know more about how people want to search it (or even if people do want
to search it).

The crash reporter in android-components which Fenix uses captures
breadcrumbs and puts it in the Breadcrumbs annotation.

This adds a processor rule to validate it and add it to the processed
crash and then display it in the Details of the report view.

Note that we tried to use the same structure that Sentry uses, however
Sentry's breadcrumbs structure looks like this:

{
  "breadcrumbs": {
    "values": [
      crumb,
      crumb,
      crumb,
    ]
  }
}

and ours look like this:

{
  "breadcrumbs": [
    crumb,
    crumb,
    crumb,
  ]
}

This code normalizes the Sentry form to ours because the validation is
easier that way. In the future, we should make sure that's what we want
to do and adjust accordingly.

This marks it as protected data, so if you don't have access to that,
you can't see it.

This doesn't make it searchable. I decided not to deal with that until I
know more about how people want to search it (or even if people do want
to search it).
missing_keys = required_keys - (required_keys & set(item.keys()))
if missing_keys:
missing_keys = ", ".join(sorted(missing_keys))
raise MalformedBreadcrumbs(f"item {i} missing keys: {missing_keys}")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At some point, I want to do a bunch of schema stuff and when I do that, we'll redo this with that.

@@ -63,54 +63,6 @@ table {
}
}

&.captioned-data-table {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't used anywhere, so I nixed it.

@willkg willkg merged commit f03f6eb into mozilla-services:main Jan 9, 2021
@willkg willkg deleted the 1671276-breadcrumbs branch January 11, 2021 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant