thephpleague / statsd

A library for working with StatsD
MIT License
351 stars 56 forks source link

throwConnectionExceptions doesn't cause exception if configured service isn't running #63

Open trea opened 5 months ago

trea commented 5 months ago

I installed and published the configuration of the league/statsd package in a Laravel 10.x application running on PHP 8.3.

I expected that since I didn't have any Statsd or any other service running on the configured address and port that the throwConnectionExceptions configuration setting being set to true would result in an exception either at application boot time or when metrics were being pushed to Statsd.

Unfortunately, I found that no exception was thrown despite there being no listening service on the configured host:port.