Skip to content

Commit 0c84a40

Browse files
committed
Adds compresssion to otel exporters
`gzip` at this time is only support compresion mechanism
1 parent ec6d837 commit 0c84a40

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/beholder/client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ func newTracerProvider(config Config, resource *sdkresource.Resource, auth Auth,
351351
exporterOpts := []otlptracegrpc.Option{
352352
otlptracegrpc.WithTLSCredentials(creds),
353353
otlptracegrpc.WithEndpoint(config.OtelExporterGRPCEndpoint),
354+
otlptracegrpc.WithCompressor("gzip"),
354355
}
355356
switch {
356357
// Rotating auth
@@ -400,6 +401,7 @@ func newMeterProvider(cfg Config, resource *sdkresource.Resource, auth Auth, cre
400401
opts := []otlpmetricgrpc.Option{
401402
otlpmetricgrpc.WithTLSCredentials(creds),
402403
otlpmetricgrpc.WithEndpoint(cfg.OtelExporterGRPCEndpoint),
404+
otlpmetricgrpc.WithCompressor("gzip"),
403405
}
404406

405407
switch {
@@ -450,6 +452,7 @@ func newLoggerOpts(cfg Config, auth Auth, creds credentials.TransportCredentials
450452
otlploggrpc.WithTLSCredentials(creds),
451453
otlploggrpc.WithEndpoint(cfg.OtelExporterGRPCEndpoint),
452454
otlploggrpc.WithDialOption(grpc.WithStatsHandler(otelgrpc.NewClientHandler(otelOpts...))),
455+
otlploggrpc.WithCompressor("gzip"),
453456
}
454457
// Log exporter auth
455458
switch {

0 commit comments

Comments
 (0)