Skip to content

Commit 5ab3a74

Browse files
authored
Add gRPC user agent (#834)
1 parent 877c1a1 commit 5ab3a74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: arduino-ide-extension/src/node/grpc-client-provider.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { inject, injectable, postConstruct } from 'inversify';
2+
import { app } from 'electron';
23
import { ILogger } from '@theia/core/lib/common/logger';
34
import { MaybePromise } from '@theia/core/lib/common/types';
45
import { ConfigServiceImpl } from './config-service-impl';
@@ -73,6 +74,7 @@ export abstract class GrpcClientProvider<C> {
7374
return {
7475
'grpc.max_send_message_length': 512 * 1024 * 1024,
7576
'grpc.max_receive_message_length': 512 * 1024 * 1024,
77+
'grpc.primary_user_agent': `arduino-ide/${app.getVersion()}`
7678
};
7779
}
7880
}

0 commit comments

Comments
 (0)