Skip to content

Commit da39de2

Browse files
committed
[Geneva] Do not set shutdown on connection failure in initialization
1 parent ec52a14 commit da39de2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

exporters/geneva/src/exporter.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ Exporter::Exporter(const ExporterOptions &options)
4242
auto status = data_transport_->Connect();
4343
if (!status) {
4444
LOG_ERROR("[Geneva Exporter] Connect failed. No data would be sent.");
45-
is_shutdown_ = true;
4645
return;
4746
}
4847
}

exporters/geneva/src/socket_data_transport.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ bool SocketDataTransport::Send(MetricsEventType event_type,
5858
"Geneva Exporter: UDS::Send Socket reconnect failed. Send failed");
5959
}
6060
}
61-
if (error_code != 0) {
61+
if (!connected_ || error_code != 0 ) {
6262
LOG_ERROR("Geneva Exporter: UDS::Send failed - not connected");
6363
connected_ = false;
6464
return false;

0 commit comments

Comments
 (0)