feat(server): accept minidumps in a gzip container #4029
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
During the work on native assigned documentation issues, the topic of compressing minidumps when uploading them via
curl
directly to the minidump endpoint came up.This is my attempt at documenting the current process: https://github.com/getsentry/sentry-docs/pull/11304/files.
Uploading a compressed minidump without meta-data is relatively straightforward. You use a gzipped minidump as the sole
POST
content, provide the minidump content type, and define it as gzip-encoded. Axum transparently decodes the minidump before they even reach the relay endpoint, and you can process them if you are oblivious to the encoding.Unfortunately, due to the way encoding can't be supplied per multipart field (at least not RFC conforming) if a user wanted to supply meta-data with the minidump, they would have to construct the entire multipart content manually, which is error-prone, compress that whole body, and send it again as a single data request.
Curl doesn't provide any convenience for gzip encoding arbitrary POST content.
This simple change in Relay would allow users to make no change between their curl requests (they could use simple curl field parameters as explained in docs) besides uploading a gzipped minidump in place of a plain one.
Let me know if this would be an acceptable change compared to adding the documentation, which describes a severely manual and, thus, error-prone process.