We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601c5b8 commit 8138912Copy full SHA for 8138912
1 file changed
google/cloud/grpc_options.h
@@ -104,6 +104,17 @@ struct GrpcChannelArgumentsOption {
104
* use the first value set for some channel arguments, and the last value set
105
* for others.
106
*
107
+ * @par Example
108
+ * To configure gRPC's maximum metadata size to 32MiB (which can be useful
109
+ * to avoid `RESOURCE_EXHAUSTED` errors when exporting gRPC metrics),
110
+ * you can use:
111
+ * @code
112
+ * google::cloud::Options options;
113
+ * grpc::ChannelArguments args;
114
+ * args.SetInt(GRPC_ARG_MAX_METADATA_SIZE, 32 * 1024 * 1024);
115
+ * options.set<google::cloud::GrpcChannelArgumentsNativeOption>(args);
116
+ * @endcode
117
+ *
118
* @see https://grpc.github.io/grpc/cpp/classgrpc_1_1_channel_arguments.html
119
* @see https://grpc.github.io/grpc/core/group__grpc__arg__keys.html
120
0 commit comments