// proxy_url on newConfig is of type *url.URL which is not understood by beatsauth extension
// this logic here converts it into string type similar to what a user would set on filebeat config
if defaultTransportSettings.Proxy.URL != nil {
Follow up from elastic/beats#46791 to make sure the translation in Elastic Agent is handled in the necessary way.