@@ -139,7 +139,7 @@ func checkCollectorConfiguration(collector *Collector, config *Config) {
139139 if isOTelExporterConfigured (collector ) && config .IsGrpcClientConfigured () && config .IsAuthConfigured () &&
140140 config .IsTLSConfigured () {
141141 slog .Info ("No collector configuration found in NGINX Agent config, command server configuration found." +
142- "Using default collector configuration" )
142+ " Using default collector configuration" )
143143 defaultCollector (collector , config )
144144 }
145145}
@@ -366,13 +366,25 @@ func registerClientFlags(fs *flag.FlagSet) {
366366 fs .Int (
367367 ClientGRPCMaxMessageReceiveSizeKey ,
368368 DefMaxMessageRecieveSize ,
369- "Updates the client grpc setting MaxRecvMsgSize with the specific value in MB ." ,
369+ "Updates the client grpc setting MaxRecvMsgSize with the specific value in bytes ." ,
370370 )
371371
372372 fs .Int (
373373 ClientGRPCMaxMessageSendSizeKey ,
374374 DefMaxMessageSendSize ,
375- "Updates the client grpc setting MaxSendMsgSize with the specific value in MB." ,
375+ "Updates the client grpc setting MaxSendMsgSize with the specific value in bytes." ,
376+ )
377+
378+ fs .Uint32 (
379+ ClientGRPCFileChunkSizeKey ,
380+ DefFileChunkSize ,
381+ "File chunk size in bytes." ,
382+ )
383+
384+ fs .Uint32 (
385+ ClientGRPCMaxFileSizeKey ,
386+ DefMaxFileSize ,
387+ "Max file size in bytes." ,
376388 )
377389}
378390
@@ -709,6 +721,8 @@ func resolveClient() *Client {
709721 MaxMessageSize : viperInstance .GetInt (ClientGRPCMaxMessageSizeKey ),
710722 MaxMessageReceiveSize : viperInstance .GetInt (ClientGRPCMaxMessageReceiveSizeKey ),
711723 MaxMessageSendSize : viperInstance .GetInt (ClientGRPCMaxMessageSendSizeKey ),
724+ MaxFileSize : viperInstance .GetUint32 (ClientGRPCMaxFileSizeKey ),
725+ FileChunkSize : viperInstance .GetUint32 (ClientGRPCFileChunkSizeKey ),
712726 },
713727 Backoff : & BackOff {
714728 InitialInterval : viperInstance .GetDuration (ClientBackoffInitialIntervalKey ),
0 commit comments