We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f54022 commit 250de89Copy full SHA for 250de89
exporters/otlp/src/otlp_grpc_client.cc
@@ -333,7 +333,12 @@ std::shared_ptr<grpc::Channel> OtlpGrpcClient::MakeChannel(const OtlpGrpcClientO
333
}
334
335
std::shared_ptr<grpc::Channel> channel;
336
- std::string grpc_target = url.host_ + ":" + std::to_string(static_cast<int>(url.port_));
+ std::string grpc_target;
337
+ if (url.scheme_ == "unix") {
338
+ grpc_target = "unix:" + url.path_;
339
+ } else {
340
+ grpc_target = url.host_ + ":" + std::to_string(static_cast<int>(url.port_));
341
+ }
342
grpc::ChannelArguments grpc_arguments;
343
grpc_arguments.SetUserAgentPrefix(options.user_agent);
344
0 commit comments