@@ -917,7 +917,7 @@ func (wn *WebsocketNetwork) ClearHandlers() {
917
917
}
918
918
919
919
func (wn * WebsocketNetwork ) setHeaders (header http.Header ) {
920
- localTelemetryGUID := wn .log .GetTelemetryHostID ()
920
+ localTelemetryGUID := wn .log .GetTelemetryGUID ()
921
921
localInstanceName := wn .log .GetInstanceName ()
922
922
header .Set (TelemetryIDHeader , localTelemetryGUID )
923
923
header .Set (InstanceNameHeader , localInstanceName )
@@ -970,11 +970,11 @@ func (wn *WebsocketNetwork) checkIncomingConnectionLimits(response http.Response
970
970
networkConnectionsDroppedTotal .Inc (map [string ]string {"reason" : "incoming_connection_limit" })
971
971
wn .log .EventWithDetails (telemetryspec .Network , telemetryspec .ConnectPeerFailEvent ,
972
972
telemetryspec.ConnectPeerFailEventDetails {
973
- Address : remoteHost ,
974
- HostName : otherTelemetryGUID ,
975
- Incoming : true ,
976
- InstanceName : otherInstanceName ,
977
- Reason : "Connection Limit" ,
973
+ Address : remoteHost ,
974
+ TelemetryGUID : otherTelemetryGUID ,
975
+ Incoming : true ,
976
+ InstanceName : otherInstanceName ,
977
+ Reason : "Connection Limit" ,
978
978
})
979
979
response .WriteHeader (http .StatusServiceUnavailable )
980
980
return http .StatusServiceUnavailable
@@ -985,11 +985,11 @@ func (wn *WebsocketNetwork) checkIncomingConnectionLimits(response http.Response
985
985
networkConnectionsDroppedTotal .Inc (map [string ]string {"reason" : "incoming_connection_per_ip_limit" })
986
986
wn .log .EventWithDetails (telemetryspec .Network , telemetryspec .ConnectPeerFailEvent ,
987
987
telemetryspec.ConnectPeerFailEventDetails {
988
- Address : remoteHost ,
989
- HostName : otherTelemetryGUID ,
990
- Incoming : true ,
991
- InstanceName : otherInstanceName ,
992
- Reason : "Remote IP Connection Limit" ,
988
+ Address : remoteHost ,
989
+ TelemetryGUID : otherTelemetryGUID ,
990
+ Incoming : true ,
991
+ InstanceName : otherInstanceName ,
992
+ Reason : "Remote IP Connection Limit" ,
993
993
})
994
994
response .WriteHeader (http .StatusServiceUnavailable )
995
995
return http .StatusServiceUnavailable
@@ -1154,10 +1154,10 @@ func (wn *WebsocketNetwork) ServeHTTP(response http.ResponseWriter, request *htt
1154
1154
wn .log .With ("event" , "ConnectedIn" ).With ("remote" , trackedRequest .otherPublicAddr ).With ("local" , localAddr ).Infof ("Accepted incoming connection from peer %s" , trackedRequest .otherPublicAddr )
1155
1155
wn .log .EventWithDetails (telemetryspec .Network , telemetryspec .ConnectPeerEvent ,
1156
1156
telemetryspec.PeerEventDetails {
1157
- Address : trackedRequest .remoteHost ,
1158
- HostName : trackedRequest .otherTelemetryGUID ,
1159
- Incoming : true ,
1160
- InstanceName : trackedRequest .otherInstanceName ,
1157
+ Address : trackedRequest .remoteHost ,
1158
+ TelemetryGUID : trackedRequest .otherTelemetryGUID ,
1159
+ Incoming : true ,
1160
+ InstanceName : trackedRequest .otherInstanceName ,
1161
1161
})
1162
1162
1163
1163
wn .maybeSendMessagesOfInterest (peer , nil )
@@ -1754,7 +1754,7 @@ func (wn *WebsocketNetwork) sendPeerConnectionsTelemetryStatus() {
1754
1754
for _ , peer := range peers {
1755
1755
connDetail := telemetryspec.PeerConnectionDetails {
1756
1756
ConnectionDuration : uint (now .Sub (peer .createTime ).Seconds ()),
1757
- HostName : peer .TelemetryGUID ,
1757
+ TelemetryGUID : peer .TelemetryGUID ,
1758
1758
InstanceName : peer .InstanceName ,
1759
1759
}
1760
1760
if peer .outgoing {
@@ -2098,11 +2098,11 @@ func (wn *WebsocketNetwork) tryConnect(addr, gossipAddr string) {
2098
2098
wn .log .With ("event" , "ConnectedOut" ).With ("remote" , addr ).With ("local" , localAddr ).Infof ("Made outgoing connection to peer %v" , addr )
2099
2099
wn .log .EventWithDetails (telemetryspec .Network , telemetryspec .ConnectPeerEvent ,
2100
2100
telemetryspec.PeerEventDetails {
2101
- Address : justHost (conn .RemoteAddr ().String ()),
2102
- HostName : peer .TelemetryGUID ,
2103
- Incoming : false ,
2104
- InstanceName : peer .InstanceName ,
2105
- Endpoint : peer .GetAddress (),
2101
+ Address : justHost (conn .RemoteAddr ().String ()),
2102
+ TelemetryGUID : peer .TelemetryGUID ,
2103
+ Incoming : false ,
2104
+ InstanceName : peer .InstanceName ,
2105
+ Endpoint : peer .GetAddress (),
2106
2106
})
2107
2107
2108
2108
wn .maybeSendMessagesOfInterest (peer , nil )
@@ -2206,10 +2206,10 @@ func (wn *WebsocketNetwork) removePeer(peer *wsPeer, reason disconnectReason) {
2206
2206
}
2207
2207
}
2208
2208
eventDetails := telemetryspec.PeerEventDetails {
2209
- Address : peerAddr ,
2210
- HostName : peer .TelemetryGUID ,
2211
- Incoming : ! peer .outgoing ,
2212
- InstanceName : peer .InstanceName ,
2209
+ Address : peerAddr ,
2210
+ TelemetryGUID : peer .TelemetryGUID ,
2211
+ Incoming : ! peer .outgoing ,
2212
+ InstanceName : peer .InstanceName ,
2213
2213
}
2214
2214
if peer .outgoing {
2215
2215
eventDetails .Endpoint = peer .GetAddress ()
0 commit comments