Skip to content

Commit

Permalink
enable gzip compression by default (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinlparker authored Feb 1, 2021
1 parent 8c7aeba commit fecfef9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions launcher/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (
"go.opentelemetry.io/otel/sdk/resource"
"go.opentelemetry.io/otel/sdk/trace"
"google.golang.org/grpc/credentials"
"google.golang.org/grpc/encoding/gzip"
)

type Option func(*Config)
Expand Down Expand Up @@ -359,6 +360,7 @@ func newExporter(accessToken, endpoint string, insecure bool) (*otlp.Exporter, e
secureOption,
otlpgrpc.WithEndpoint(endpoint),
otlpgrpc.WithHeaders(headers),
otlpgrpc.WithCompressor(gzip.Name),
),
)
}
Expand Down

0 comments on commit fecfef9

Please sign in to comment.