I'd like to be able to extract attachments from an already serialized envelope.
The use case is the the end user can export minidumps from a crash reports that failed to send due to relay file size limits or network issues and then dump them somewhere else instead.
It looks like there are functions to add and remove attachments, but I can't find one in the public API that gets an attachment, either as a pointer buffer +size or extracts to a file.
There's sentry_envelope_deserialize(...) and sentry__envelope_item_get_payload(...) but they are internal to sentry-native and the sentry_envelope_t type is opaque.
It would be really convenient to have it as a function in the SDK in a future release. Something like sentry_envelope_get_attachment(...)
I'd like to be able to extract attachments from an already serialized envelope.
The use case is the the end user can export minidumps from a crash reports that failed to send due to relay file size limits or network issues and then dump them somewhere else instead.
It looks like there are functions to add and remove attachments, but I can't find one in the public API that gets an attachment, either as a pointer buffer +size or extracts to a file.
There's
sentry_envelope_deserialize(...)andsentry__envelope_item_get_payload(...)but they are internal to sentry-native and thesentry_envelope_ttype is opaque.It would be really convenient to have it as a function in the SDK in a future release. Something like
sentry_envelope_get_attachment(...)