fix(profiler): support gzip compression mode [#4696 backport]#4710
Conversation
Backport #4696 to the v2.7.x release branch Adds a functional gzip compression mode for the profiler via `DD_PROFILING_DEBUG_COMPRESSION_SETTINGS=gzip`. This was already kinda working, but not really, hence the "fix" title. - Defaults `gzip` to gzip-6, matching the gzip level legacy mode applies when it compresses profiler-produced profiles. - Adds gzip-to-gzip recompression so gzip mode works for runtime profiles that are already gzip-compressed at gzip-1. - Adds tests for gzip mode and gzip recompression. This is done for incident-53386, where zstd caused a memory usage increase. The gzip mode provides an alternative to the default zstd compression while keeping profiler uploads compressed.
Codecov Report❌ Patch coverage is
Additional details and impacted files
🚀 New features to boost your workflow:
|
BenchmarksBenchmark execution time: 2026-04-30 20:01:22 Comparing candidate commit ce45805 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 149 metrics, 9 unstable metrics.
|
Backport #4696 to the v2.7.x release branch
Adds a functional gzip compression mode for the profiler via
DD_PROFILING_DEBUG_COMPRESSION_SETTINGS=gzip. This was already kindaworking, but not really, hence the "fix" title.
gzipto gzip-6, matching the gzip level legacy mode applieswhen it compresses profiler-produced profiles.
profiles that are already gzip-compressed at gzip-1.
This is done for incident-53386, where zstd caused a memory usage
increase. The gzip mode provides an alternative to the default zstd
compression while keeping profiler uploads compressed.