Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.71 KB

File metadata and controls

49 lines (34 loc) · 1.71 KB

zstd Compressor

A zstd implementation of Compressor and CompressorProvider based on luben/zstd-jni.

This enables zstd compression with opentelemetry-java's OTLP exporters.

Usage

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

Component owners

Learn more about component owners in component_owners.yml.