Skip to content

Commit

Permalink
Remove reference to UDS for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomsonTan committed Jan 14, 2025
1 parent a4d3681 commit eda615b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions exporters/geneva/src/exporter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ Exporter::Exporter(const ExporterOptions &options)
: options_(options), connection_string_parser_(options_.connection_string),
data_transport_{nullptr} {
if (connection_string_parser_.IsValid()) {
#ifdef _WIN32
if (connection_string_parser_.transport_protocol_ ==
TransportProtocol::kETW) {
data_transport_ = std::unique_ptr<DataTransport>(
new ETWDataTransport(kBinaryHeaderSize));
}
#else
if (connection_string_parser_.transport_protocol_ ==
TransportProtocol::kUNIX) {
data_transport_ =
std::unique_ptr<DataTransport>(new UnixDomainSocketDataTransport(
connection_string_parser_.connection_string_));
}
#ifdef _WIN32
else if (connection_string_parser_.transport_protocol_ ==
TransportProtocol::kETW) {
data_transport_ = std::unique_ptr<DataTransport>(
new ETWDataTransport(kBinaryHeaderSize));
}
#endif
}
// Connect transport at initialization
Expand Down

0 comments on commit eda615b

Please sign in to comment.