You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[exporter/awss3exporter] Added IsArchiveFormat for Sumo IC (open-telemetry#43574)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
The sumo_ic marshaler was incorrectly blocked from using compression.
Sumo Logic's Installed Collector compresses archive files before S3
upload, but the OpenTelemetry exporter prevented this, causing format
incompatibility.
Root cause: The exporter used ContentEncoding: "gzip" for all compressed
uploads, which signals HTTP transfer compression (auto-decompressed by
AWS). Archive formats like sumo_ic need files to stay compressed
permanently.
Solution: Added isArchiveFormat flag to distinguish between archive
formats (files stay compressed) and transfer formats (HTTP
optimization). The flag controls whether ContentEncoding header is set
during upload.
<!--Describe what testing was performed and which tests were added.-->
#### Testing
- Manual testing: Downloaded files from S3, verified gzip compression
with file and gunzip commands
- Unit test passed:
```
➜ awss3exporter git:(sumoCompression) ✗ make test
/Users/timothy.chan/Desktop/opentelemetry-collector-contrib/.tools/gotestsum --rerun-fails=1 --packages="./..." -- -race -timeout 900s -parallel 4 --tags=""
∅ internal/metadata
✓ internal/upload (cached)
✓ . (2.662s)
DONE 98 tests in 2.662s
```
<!--Describe the documentation added.-->
#### Documentation
- Removed outdated README that gzip doesn't support sumo_ic marshaler
<!--Please delete paragraphs that you did not use before submitting.-->
0 commit comments