Elixometer default config does not seem to be pulled in.
obmarg opened this issue · comments
The README states:
The optional update_frequency key of the :elixometer config controls the interval between reports. By default this is set to 1000 ms in the dev environment and 20 ms in the test environment.
But update_frequency
doesn't seem to have a default for me. If I remove all my config code for elixometer, I get this:
Application.get_all_env(:elixometer)
[included_applications: []]
It does not look like the config of Elixometer is getting pulled into my app.
Got caught up on this too, updates weren't happening after following Wiki instructions because update_frequency
was never actually set. :)
Default settings can be provided in application
> env
in elixometer's mix.exs:
def application do
[ mod: {Elixometer.App, []},
applications: [:logger, :exometer],
env: [foo: "one",
bar: "two"],
]
end
From the comment in config.exs
:
# This configuration is loaded before any dependency and is restricted
# to this project. If another project depends on this project, this
# file won't be loaded nor affect the parent project. For this reason,
# if you want to provide default values for your application for third-
# party users, it should be done in your mix.exs file.