Open
Description
Due to a mis-configuration at work, our agent host was in some cases not being set.
This led to (luckily dev/qa time) discovering a PHP warning is thrown at runtime if the class is constructed with an incorrect value.
Like a lot of 12-factor apps, we get our value from ENV, which in our case resulted in no errors and a booting app. But warnings silently output.
I think the constructor of DogStatsTimer
should throw if the host
configuration is not a valid hostname or IP address. In our case it was false
😂
I Know people SHOULD NOT have warnings output in QA or production environments. But separate to that issue, I would be interesting in contributing this change if the authors are amenable.
Metadata
Metadata
Assignees
Labels
No labels