open-telemetry / open-telemetry/opentelemetry-java-contrib

Support snappy compressor in CompressorUtil

Open
#1,222 3 comments 0 reactions 1 assignee View on GitHub

@jack-berg is already working on this.

Since Aug 4, 2025.

component:compressors enhancement
Dominant language
Java
Stars
269
Forks
196
Avg merge
2d 7h
Merged PRs (30d)
38

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.