BedrockStreaming / Statsd

PHP component easing the statsd usage
13 stars 14 forks source link

Now failing silently if Statsd server is unreachable #22

Closed neemzy closed 7 years ago

neemzy commented 7 years ago

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.

omansour commented 7 years ago

v1.3.1

neemzy commented 7 years ago

Thanks! Et le bonjour d'Auchan E-Commerce ;)