From 93c8b13a201bcf6d44697422ef3dbd2bc61122cf Mon Sep 17 00:00:00 2001 From: Jim McDonald Date: Tue, 16 Jan 2024 23:23:09 +0000 Subject: [PATCH] Revert use of compression. --- connectionprovider.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/connectionprovider.go b/connectionprovider.go index 6fae317..e98562f 100644 --- a/connectionprovider.go +++ b/connectionprovider.go @@ -23,7 +23,6 @@ import ( "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" "google.golang.org/grpc" "google.golang.org/grpc/credentials" - "google.golang.org/grpc/encoding/gzip" ) var ( @@ -67,9 +66,11 @@ func (c *PuddleConnectionProvider) obtainOrCreatePool(address string) *puddle.Po grpc.WithTransportCredentials(c.credentials), grpc.WithDefaultCallOptions( // Maximum message receive size is 128 MB. - grpc.MaxCallRecvMsgSize(128*1024*1024), + grpc.MaxCallRecvMsgSize(128 * 1024 * 1024), // Use compression if available. - grpc.UseCompressor(gzip.Name), + // Cannot enable unilaterally; need to wait for Dirk server to support this to avoid + // miscommunication. + // grpc.UseCompressor(gzip.Name), ), grpc.WithStatsHandler(otelgrpc.NewClientHandler()), }...)