File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
components/usage/pkg/server Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ package server
6
6
7
7
import (
8
8
"fmt"
9
- gitpod_grpc "github.com/gitpod-io/gitpod/common-go/grpc"
10
9
"net"
11
10
"os"
12
11
"time"
@@ -71,11 +70,15 @@ func Start(cfg Config, version string) error {
71
70
if err != nil {
72
71
return fmt .Errorf ("failed to register grpc client metrics: %w" , err )
73
72
}
74
- selfConnection , err := grpc .Dial (srv .GRPCAddress (), append (
75
- gitpod_grpc .DefaultClientOptions (),
73
+ selfConnection , err := grpc .Dial (srv .GRPCAddress (),
76
74
grpc .WithTransportCredentials (insecure .NewCredentials ()),
77
- grpcDialerWithInitialDelay (1 * time .Second ))... ,
78
- )
75
+ grpcDialerWithInitialDelay (1 * time .Second ),
76
+ grpc .WithUnaryInterceptor (grpcClientMetrics .UnaryClientInterceptor ()),
77
+ grpc .WithStreamInterceptor (grpcClientMetrics .StreamClientInterceptor ()),
78
+ grpc .WithDefaultCallOptions (
79
+ grpc .MaxCallRecvMsgSize (100 * 1024 * 1024 ),
80
+ grpc .MaxCallSendMsgSize (100 * 1024 * 1024 ),
81
+ ))
79
82
if err != nil {
80
83
return fmt .Errorf ("failed to create self-connection to grpc server: %w" , err )
81
84
}
You can’t perform that action at this time.
0 commit comments