-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] No env and prod converges to the same value. Invitation to human error? #25
Comments
I think it would be bad if your application failed to boot because your metrics package wasn't configured correctly; especially if you left out the env. |
It can go both ways. It is about what do you mean by a good state. Right now the process owns the ets. So risk is small. |
I think prod is more valid because that's the env where I really don't want stuff to fail. Imagine this: deploy goes out, servers don't boot and I'm running at reduced capacity until I can roll back. Not a great scenario. |
Then at least log a warning or something, a default is being used. |
I think it makes sense at least to log a warning when |
When people (or mistake in the script) forget to put value for env, it will output the same
value as if "prod" has been put in. It looks like it hides a mistake, and makes is a hard to find error.
Suggest to make env a required settings, not optional, during init for least surprises.
File: elixometer/lib/elixometer.ex
The text was updated successfully, but these errors were encountered: