If the specified Statsd server is unreachable, PHP throws a warning turned into an exception by Symfony:
ContextErrorException in Client.php line 322:
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
I suggest failing silently instead, as Statsd is mostly used for metrics monitoring, which should not prevent the application from doing its main job upon failure.
If the specified Statsd server is unreachable, PHP throws a warning turned into an exception by Symfony:
I suggest failing silently instead, as Statsd is mostly used for metrics monitoring, which should not prevent the application from doing its main job upon failure.