sentry-cli
sentry-cli copied to clipboard
Use `zstd` for file uploads
zstd compression offers faster compression with better compression ratios compared to gzip, what we currently use for file uploads. Let's consider switching chunk uploads to zstd, from the current gzip.
Some considerations while implementing this change:
- We need to add support for
zstduploads to both Sentry CLI and Sentry - We need to consider backwards compatibility. In the chunk upload options, we likely will not want to specify
zstdin the compression field because older versions of Sentry CLI, which don't supportzstd, will fallback to uncompressed uploads, rather than falling back togzip.- One potential solution: deprecate the existing compression field, and continue setting it for
gzip. Instead, introduce a new compression field which is set to a list of compression algorithms that the server supports. New versions of Sentry CLI , which supportzstdand the new compression field, will always pick the first algorithm from the list which the CLI supports. Old versions of Sentry CLI, which neither understand the new field nor supportzstd, will ignore the new field, and instead usegzip, as specified in the old field.
- One potential solution: deprecate the existing compression field, and continue setting it for