Closed keathley closed 4 years ago
We're having to do the same thing as our statsd servers are defined by ENV vars per data centre (a.la Consul). In general it makes sense to support runtime configuration especially for external services.
Regarding the discussions in #41, this would also be a solid feature to add to a Bleacher Report fork.
We often need to pre-configure statix at runtime before running the
connect/0
function. Would it make sense to allowconnect
to accept a configuration? This would allow us to avoid mutating the application env. I can take a look at this if it's interesting to y'all.