Skip to content

feat(native): SDK function to extract attachments from envelopes #1826

Description

@zokrovi

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(...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Attachmentsissue relates to attachments, i.e. screenshots, view hierarchy, file attachmentsImprovementimprovement for existing featuresNativeplatform labelWaiting for: Product Owner
    No fields configured for issues without a type.

    Projects

    Status
    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions