local-ch / lhc

🚀 Advanced HTTP Client for Ruby. Fueled with interceptors.
GNU General Public License v3.0
43 stars 1 forks source link

Configurable monitoring ENV #131

Closed 10xSebastian closed 6 years ago

10xSebastian commented 6 years ago

The monitoring interceptor was using Rails.env to determine the environment it is reporting for to Statsd.

In deployed environments like Kubernetes, where we use Rails.env production for dev/beta/production, but use ENV[DEPLOYMENT_TYPE] to define the final environment, the monitoring interceptor needs to be configurable in regards of the env it uses for reporting.