@@ -70,6 +70,9 @@ const (
7070 envTelemetryLogExportMaxBatchSize = "CL_TELEMETRY_LOG_EXPORT_MAX_BATCH_SIZE"
7171 envTelemetryLogExportInterval = "CL_TELEMETRY_LOG_EXPORT_INTERVAL"
7272 envTelemetryLogMaxQueueSize = "CL_TELEMETRY_LOG_MAX_QUEUE_SIZE"
73+ envTelemetryTraceCompressor = "CL_TELEMETRY_TRACE_COMPRESSOR"
74+ envTelemetryMetricCompressor = "CL_TELEMETRY_METRIC_COMPRESSOR"
75+ envTelemetryLogCompressor = "CL_TELEMETRY_LOG_COMPRESSOR"
7376
7477 envChipIngressEndpoint = "CL_CHIP_INGRESS_ENDPOINT"
7578 envChipIngressInsecureConnection = "CL_CHIP_INGRESS_INSECURE_CONNECTION"
@@ -133,6 +136,9 @@ type EnvConfig struct {
133136 TelemetryLogExportMaxBatchSize int
134137 TelemetryLogExportInterval time.Duration
135138 TelemetryLogMaxQueueSize int
139+ TelemetryTraceCompressor string
140+ TelemetryMetricCompressor string
141+ TelemetryLogCompressor string
136142
137143 ChipIngressEndpoint string
138144 ChipIngressInsecureConnection bool
@@ -209,6 +215,9 @@ func (e *EnvConfig) AsCmdEnv() (env []string) {
209215 add (envTelemetryLogExportMaxBatchSize , strconv .Itoa (e .TelemetryLogExportMaxBatchSize ))
210216 add (envTelemetryLogExportInterval , e .TelemetryLogExportInterval .String ())
211217 add (envTelemetryLogMaxQueueSize , strconv .Itoa (e .TelemetryLogMaxQueueSize ))
218+ add (envTelemetryTraceCompressor , e .TelemetryTraceCompressor )
219+ add (envTelemetryMetricCompressor , e .TelemetryMetricCompressor )
220+ add (envTelemetryLogCompressor , e .TelemetryLogCompressor )
212221
213222 add (envChipIngressEndpoint , e .ChipIngressEndpoint )
214223 add (envChipIngressInsecureConnection , strconv .FormatBool (e .ChipIngressInsecureConnection ))
@@ -406,7 +415,9 @@ func (e *EnvConfig) parse() error {
406415 if err != nil {
407416 return fmt .Errorf ("failed to parse %s: %w" , envTelemetryLogMaxQueueSize , err )
408417 }
409-
418+ e .TelemetryTraceCompressor = os .Getenv (envTelemetryTraceCompressor )
419+ e .TelemetryMetricCompressor = os .Getenv (envTelemetryMetricCompressor )
420+ e .TelemetryLogCompressor = os .Getenv (envTelemetryLogCompressor )
410421 // Optional
411422 e .ChipIngressEndpoint = os .Getenv (envChipIngressEndpoint )
412423 e .ChipIngressInsecureConnection , err = getBool (envChipIngressInsecureConnection )
0 commit comments