Add compression configuration to the OpenTelemetry Environment Variable Specification #2852
Labels
area:configuration
Related to configuring the SDK
[label deprecated] triaged-needmoreinfo
[label deprecated] The issue is triaged - the OTel community needs more information to decide
spec:miscellaneous
For issues that don't match any other spec label
What are you trying to achieve?
I would like to add missing environment variables to configure compression on (span) exporters to the OpenTelemetry Environment Variable Specification and clarify the compression default value for the OTLP exporter on OpenTelemetry Protocol Exporter.
The suggested new environment variables are:
OTEL_EXPORTER_JAEGER_COMPRESSION
: The compression type to use on Jaeger trace requests. Options includenone
andgzip
. Default isnone
.OTEL_EXPORTER_ZIPKIN_COMPRESSION
: The compression type to use on Zipkin trace requests. Options includenone
andgzip
. Default isgzip
.The environment variables to clarify are:
OTEL_EXPORTER_OTLP_COMPRESSION
,OTEL_EXPORTER_OTLP_TRACES_COMPRESSION
,OTEL_EXPORTER_OTLP_METRICS_COMPRESSION
,OTEL_EXPORTER_OTLP_LOGS_COMPRESSION
: The compression type to use on OTLP log requests. Options includenone
andgzip
. Default isnone
.The default values are taken from the current implementation of the OpenTelemetry Java SDK.
EDIT: Please notice that in Java compression is currently disabled by default for OTLP and Jaeger, but enabled for Zipkin (using
gzip
). This may overlap with existing issues like #2098 and #1895.Additional context.
As a user of the OpenTelemetry Java SDK I'd like to be able to configure compression consistently over the provided trace/metric/log exporters. For the OTLP exporters there is already a programmatic way to configure compression, for Jaeger and Zipkin I'm working on a contribution to add those to the SDK. During the review I was made aware, that for auto-configuration we need to add new environment variables to the SDK specification.
The text was updated successfully, but these errors were encountered: