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
added setExtraParameters to crashReporter #7072
Conversation
### `crashReporter.setExtraParameters(extra)` | ||
|
||
* `extra` Object - An object you can define that will be sent along with the | ||
report. Only string properties are sent correctly, Nested objects are not |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
correctly, Nested
-> correctly. Nested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've copied it from the start method docs 😉
Nice, @TimvdEijnden. Are you able to add some tests for this new feature? |
Seeing a failure on Windows CI. It seems unrelated though. Maybe a flaky build?
|
I'll try to add tests, I have zero knowledge of C++ 😇 |
I was writing tests to verify if my changes worked, but it doesn't work :( The implementation is different per OS, I think it's possible to add this support but I don't have the experience to fix this. It's too difficult for me. |
@@ -58,6 +58,17 @@ sent or the crash reporter has not been started, `null` is returned. | |||
Returns all uploaded crash reports. Each report contains the date and uploaded | |||
ID. | |||
|
|||
### `crashReporter.setExtraParameters(extra)` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So these are meant to completely replace the extra
parameters specified to start
right? Maybe the docs should mention something like This will override any extra parameters specified to start()
just to make things clear.
I've been working on pulling in support |
Yes that would be great. Adding the setExtraParameters was easy but getting it to work is to hard. I'm closing this for now and will wait for your PR. |
Hey @bridiver have you made any progress on this? If not, I can pick it up. |
@zeke I have a partially complete branch. I think I should be able to pick it back up and finish, but if not I'll link you to what I have and you can pick it up from there |
We want to send along the logged in user in our application when submitting a crash report.
But we want to start the crash report directly on start so we wont miss any crashes.
When we load our website we can get the logged in user from the loaded website and add that info to the extra_parameters of the crashReporter. This was not possible so i've added it.