opentelemetry-java-contrib
opentelemetry-java-contrib copied to clipboard
Support snappy compressor in CompressorUtil
Is your feature request related to a problem? Please describe.
gzip is the only supported default compression for exporter, however gzip consumes much more CPU than snappy, so it will be great to also provide snappy as supported compression.
Describe the solution you'd like
calling setCompression("snappy") for exporter will use snappy compressor.
TelemetryExporter<T> exporter = exporterBuilder().setEndpoint(endpoint).setCompression("snappy").build();
Describe alternatives you've considered
No response
Additional context
No response
@open-telemetry/java-maintainers could you move this issue to https://github.com/open-telemetry/opentelemetry-java
moving to https://github.com/open-telemetry/opentelemetry-java-contrib
@qixiaogang if you are interested, we would probably accept this as a new pluggable compressor, similar to https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/compressors/compressor-zstd
cc @jack-berg who is the component owner for the zstd contrib compressor
@trask thank you, it is what I want except it is zstd.