Skip to content

Commit 42a904e

Browse files
committed
Revert otlp grpc client changes
Propose change in follow up PR
1 parent ab5441e commit 42a904e

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

exporters/otlp/src/otlp_grpc_client.cc

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -333,15 +333,7 @@ std::shared_ptr<grpc::Channel> OtlpGrpcClient::MakeChannel(const OtlpGrpcClientO
333333
}
334334

335335
std::shared_ptr<grpc::Channel> channel;
336-
std::string grpc_target;
337-
if (url.scheme_ == "unix")
338-
{
339-
grpc_target = "unix:" + url.path_;
340-
}
341-
else
342-
{
343-
grpc_target = url.host_ + ":" + std::to_string(static_cast<int>(url.port_));
344-
}
336+
std::string grpc_target = url.host_ + ":" + std::to_string(static_cast<int>(url.port_));
345337
grpc::ChannelArguments grpc_arguments;
346338
grpc_arguments.SetUserAgentPrefix(options.user_agent);
347339

0 commit comments

Comments
 (0)