in lib/ec2macossystemmonitor/relayd.go [106:113]
func SendMessage(tag string, data string, compress bool) (n int, err error) {
msgBytes, err := BuildMessage(tag, data, compress)
if err != nil {
return 0, fmt.Errorf("ec2macossystemmonitor: error while building message bytes: %w", err)
}
return PassToRelayd(msgBytes)
}