-
-
Notifications
You must be signed in to change notification settings - Fork 172
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
Allow inspecting event-id for crashpad events #779
Comments
So this is the same I still wonder whether generating an empty event with an id to pass into the hooks would generally make sense since it would allow client code to enrich events in all backends. |
It should be possible to set the event ID as metadata when uploading the minidump, right? Docs:
This works for me if I set a Perhaps the event ID for the crash (if any) could be provided when the SDK is initialised? This would give the application a chance to write it to a file. In a subsequent session the app could check |
Yes, @barneygale, the minidump endpoint can consume a full event payload. This is what happens with the other backends. The problem is that with Crashpad, the |
Could you supply the event ID when you spawn the sentry_options_set_crash_event_id(options, "[some precomputed ID]");
sentry_init(options); The crash event ID may or may not be used, depending on whether the app crashes. But at least the app controls it and can stash it in a file, so that a subsequent run can elicit user feedback. I'm not a C++ programmer so I'm probably missing something crucial. Thanks! |
fixed in #843 |
Usecase
A customer would want to collect user feedback for a crash. They are trying to use the
on_crash
hook to do that.However the user feedback API requires an event-id to attach the user feedback to.
Background / Proposal
Our crashpad backend currently has no way to get the event-id of the to-be-sent event, as that is created on the server when the minidump is received.
According to @jan-auer, relay will use whatever id is provided in the special
__sentry_event
file which currently contains serialized scope information and is sent alongside crashpad minidumps.It should be possible to generate a uuid ahead of time and serialize that into the
__sentry_event
file. When calling our hooks and provide a dummy event, we can then at least fill out the event id property so that customers can use it.There might be the problem that the event/minidump needs to be sent before user feedback can be posted? Not entirely sure how the ordering and timing there could be guaranteed?
A possible flow could be this:
__sentry_event
file.The text was updated successfully, but these errors were encountered: