mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
improvement: less scary failed conn logs & metrics
...and adjust the `totalFailedConnections` metric name and description. This commit should make the periodic stats log messages and the relevant metric look less scary to users: P2P connection failures are relatively frequent and are usually not indicative of the proxy operator having done something wrong. So let's tone the wording down. See the discussion: https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake/-/merge_requests/516#note_3173677.
This commit is contained in:
parent
f715c397c2
commit
f3e040bbd8
2 changed files with 4 additions and 4 deletions
|
@ -108,8 +108,8 @@ type EventOnProxyStats struct {
|
|||
}
|
||||
|
||||
func (e EventOnProxyStats) String() string {
|
||||
statString := fmt.Sprintf("In the last %v, there were %v completed successful connections. %v connections failed to establish. Traffic Relayed ↓ %v %v (%.2f %v%s), ↑ %v %v (%.2f %v%s).",
|
||||
e.SummaryInterval.String(), e.ConnectionCount, e.FailedConnectionCount,
|
||||
statString := fmt.Sprintf("In the last %v, there were %v completed successful connections. Traffic Relayed ↓ %v %v (%.2f %v%s), ↑ %v %v (%.2f %v%s).",
|
||||
e.SummaryInterval.String(), e.ConnectionCount,
|
||||
e.InboundBytes, e.InboundUnit, float64(e.InboundBytes)/e.SummaryInterval.Seconds(), e.InboundUnit, "/s",
|
||||
e.OutboundBytes, e.OutboundUnit, float64(e.OutboundBytes)/e.SummaryInterval.Seconds(), e.OutboundUnit, "/s")
|
||||
return statString
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue