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

Add more info to crash reports #1253

Merged
merged 19 commits into from
Apr 19, 2024
Merged

Add more info to crash reports #1253

merged 19 commits into from
Apr 19, 2024

Conversation

bgrgicak
Copy link
Collaborator

@bgrgicak bgrgicak commented Apr 16, 2024

Fixes #1152

What is this PR doing?

It adds environment context data and the blueprint to crash reports.

What problem is it solving?

This should help us debug crash reports.

How is the problem addressed?

By adding more data to the crash report.

Testing Instructions

  • Add debug code (see code removed in this commit )
  • Open Playground locally
  • When the error report modal opens, add a description and click submit
  • In the browse console see the context data

@bgrgicak bgrgicak self-assigned this Apr 16, 2024
@bgrgicak bgrgicak requested a review from a team April 17, 2024 07:07
@bgrgicak bgrgicak marked this pull request as ready for review April 17, 2024 07:07
@bgrgicak bgrgicak requested a review from adamziel April 17, 2024 10:27
@bgrgicak
Copy link
Collaborator Author

@adamziel I have another PR that refactors the logger and is based on this PR.
I might address some of your feedback in that PR to reduce the amount conflicts.

@adamziel
Copy link
Collaborator

Almost there @bgrgicak! Let's also document the info and the service worker change in the PR description so our future selves will be able to very quickly understand this change without diving into the code.

bgrgicak and others added 5 commits April 19, 2024 07:39
@bgrgicak bgrgicak requested a review from adamziel April 19, 2024 05:54
@bgrgicak
Copy link
Collaborator Author

All feedback should now be addressed. I also updated #1264 with these changes.

};
worker.clients
.matchAll({
includeUncontrolled: true,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why includeUncontrolled? Let's leave a comment in the code to explain. Otherwise LGTM 👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

@bgrgicak yeah I meant more not the literal meaning of that option but rather why bother with uncontrolled clients.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can update it in #1264 with something like this.

// Inform all Playground clients that there was a change in the number of active tabs

Copy link
Collaborator

Choose a reason for hiding this comment

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

Right, but why an uncontrolled client is considered a Playground client? It seems like that browser tab wouldn't be able to access Playground anyway, as being controlled is crucial for that, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct, I tested this a bit and it's actually not needed, so I will remove this line in #1264

@bgrgicak bgrgicak merged commit 31c329f into trunk Apr 19, 2024
5 checks passed
@bgrgicak bgrgicak deleted the add/1152-logger-context branch April 19, 2024 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error logging: Collect more context
2 participants