File tree Expand file tree Collapse file tree
include/opentelemetry/exporters/otlp Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ struct OtlpGrpcClientOptions
9494
9595 /* *
9696 * Optional caller-provided gRPC channel arguments.
97- * This is a non-owning pointer, and the pointed-to arguments are copied when the channel is
98- * created .
97+ * This is a non-owning pointer. If set, the pointed-to object must remain valid
98+ * until the gRPC exporter or client has been constructed .
9999 */
100100 const grpc::ChannelArguments *channel_arguments{};
101101};
Original file line number Diff line number Diff line change @@ -398,8 +398,6 @@ std::shared_ptr<grpc::Channel> OtlpGrpcClient::MakeChannel(const OtlpGrpcClientO
398398void OtlpGrpcClient::PopulateChannelArguments (const OtlpGrpcClientOptions &options,
399399 grpc::ChannelArguments &grpc_arguments)
400400{
401- grpc_arguments = grpc::ChannelArguments{};
402-
403401 if (options.channel_arguments != nullptr )
404402 {
405403 grpc_arguments = *options.channel_arguments ;
You can’t perform that action at this time.
0 commit comments