@@ -143,7 +143,7 @@ func checkCollectorConfiguration(collector *Collector, config *Config) {
143143 if isOTelExporterConfigured (collector ) && config .IsGrpcClientConfigured () && config .IsAuthConfigured () &&
144144 config .IsTLSConfigured () {
145145 slog .Info ("No collector configuration found in NGINX Agent config, command server configuration found." +
146- "Using default collector configuration" , configLogOrigin )
146+ " Using default collector configuration" , configLogOrigin )
147147 defaultCollector (collector , config )
148148 }
149149}
@@ -373,13 +373,25 @@ func registerClientFlags(fs *flag.FlagSet) {
373373 fs .Int (
374374 ClientGRPCMaxMessageReceiveSizeKey ,
375375 DefMaxMessageRecieveSize ,
376- "Updates the client grpc setting MaxRecvMsgSize with the specific value in MB ." ,
376+ "Updates the client grpc setting MaxRecvMsgSize with the specific value in bytes ." ,
377377 )
378378
379379 fs .Int (
380380 ClientGRPCMaxMessageSendSizeKey ,
381381 DefMaxMessageSendSize ,
382- "Updates the client grpc setting MaxSendMsgSize with the specific value in MB." ,
382+ "Updates the client grpc setting MaxSendMsgSize with the specific value in bytes." ,
383+ )
384+
385+ fs .Uint32 (
386+ ClientGRPCFileChunkSizeKey ,
387+ DefFileChunkSize ,
388+ "File chunk size in bytes." ,
389+ )
390+
391+ fs .Uint32 (
392+ ClientGRPCMaxFileSizeKey ,
393+ DefMaxFileSize ,
394+ "Max file size in bytes." ,
383395 )
384396}
385397
@@ -716,6 +728,8 @@ func resolveClient() *Client {
716728 MaxMessageSize : viperInstance .GetInt (ClientGRPCMaxMessageSizeKey ),
717729 MaxMessageReceiveSize : viperInstance .GetInt (ClientGRPCMaxMessageReceiveSizeKey ),
718730 MaxMessageSendSize : viperInstance .GetInt (ClientGRPCMaxMessageSendSizeKey ),
731+ MaxFileSize : viperInstance .GetUint32 (ClientGRPCMaxFileSizeKey ),
732+ FileChunkSize : viperInstance .GetUint32 (ClientGRPCFileChunkSizeKey ),
719733 },
720734 Backoff : & BackOff {
721735 InitialInterval : viperInstance .GetDuration (ClientBackoffInitialIntervalKey ),
0 commit comments