As it turns out, the console callback is called after after_initialize config callback in the Railtie. This can still cause the metric worker to startup when it's not meant to. This change will shutdown the MetricsWorker and EventWorker when the Rails console is loaded.
Before submitting a pull request, please make sure the following is done:
If you've fixed a bug or added code that should be tested, add tests!
As it turns out, the
console
callback is called afterafter_initialize
config callback in the Railtie. This can still cause the metric worker to startup when it's not meant to. This change will shutdown theMetricsWorker
andEventWorker
when the Rails console is loaded.Before submitting a pull request, please make sure the following is done:
rake spec
in the repository root.