Skip to content

Commit 71af3c0

Browse files
committed
dogstatsd: send length_prefix only for Unix Stream
Length prefix is only needed in case of Stream and not for Datagram whether it is Unix or UDP socket. Reference: https://github.com/DataDog/datadog-go/blob/bae3560e5c664d64b71c0e8ca89326afa362e12a/statsd/uds.go#L62
1 parent b33e7a0 commit 71af3c0

File tree

1 file changed

+1
-1
lines changed
  • metrics-exporter-dogstatsd/src/forwarder

1 file changed

+1
-1
lines changed

metrics-exporter-dogstatsd/src/forwarder/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl ForwarderConfiguration {
118118
#[cfg(target_os = "linux")]
119119
RemoteAddr::Unix(_) => true,
120120
#[cfg(target_os = "linux")]
121-
RemoteAddr::Unixgram(_) => true,
121+
RemoteAddr::Unixgram(_) => false,
122122
}
123123
}
124124
}

0 commit comments

Comments
 (0)