A zstd implementation of Compressor and CompressorProvider based on luben/zstd-jni.
This enables zstd compression with opentelemetry-java's OTLP exporters.
Add dependency, replacing {{version}}
with the latest release version.
Maven:
<dependency>
<groupId>io.opentelemetry.contrib</groupId>
<artifactId>opentelemetry-compressor-zstd</artifactId>
<version>{{version}}</version>
</dependency>
Gradle:
dependencies {
implementation "io.opentelemetry.contrib:opentelemetry-compressor-zstd:{{version}}"
}
If programmatically configuring the exporter:
// same pattern applies to OtlpHttpMetricExporter, OtlpHttpSpanExporter, and the gRPC variants
OtlpHttpLogRecordExporter.builder()
.setCompression("zstd")
// ...additional configuration omitted for brevity
.build()
If using autoconfigure:
export OTEL_EXPORTER_OTLP_COMPRESSION=zstd
- Jack Berg, New Relic
Learn more about component owners in component_owners.yml.