@sentry/node / @sentry/node-core already gzip envelopes >32 KB (packages/node-core/src/transports/http.ts)
zstd is a better compression algorithm which is supported by Relay and is available on all major runtimes today, but support is relatively new:
The API offers better compression ratios which can be used on smaller than 32kb payloads we have today and offer better gains and less load to our users and our servers.
API is mainly available through node:zlib's createZstdCompress function. Worth noting that it is marked as experimental and on the time of writing this issue can be too new.
Seems its going to be used by our CLI getsentry/cli#843
@sentry/node/@sentry/node-corealready gzip envelopes >32 KB (packages/node-core/src/transports/http.ts)zstd is a better compression algorithm which is supported by Relay and is available on all major runtimes today, but support is relatively new:
nodejs_compatflag)The API offers better compression ratios which can be used on smaller than 32kb payloads we have today and offer better gains and less load to our users and our servers.
API is mainly available through
node:zlib'screateZstdCompressfunction. Worth noting that it is marked as experimental and on the time of writing this issue can be too new.Seems its going to be used by our CLI getsentry/cli#843