Closed inderps closed 4 years ago
Hi, @inderps. Are you using gem yabeda-rails or is there only gem "yabeda-sidekiq"
in your Gemfile?
Please try to add gem "yabeda-rails"
to your Gemfile. I believe that it should fix the error.
@Envek Thanks for your quick reply. Yes I discovered that to use yabeda-sidekiq, you need to add yabeda-rails as well. But by adding yabeda rails, will it also create metrics for web app? Because in our case, we were interested in sidekiq only.
If you don't want web metrics, you can just copy this railtie to your application: https://github.com/yabeda-rb/yabeda-rails/blob/master/lib/yabeda/rails/railtie.rb
I will add necessary configs and documentation later.
Alright thanks
I think the simple fix would be to call:
Yabeda.configure! unless Yabeda.already_configured?
@inderps why do you close the issue?
The gem does not work out of the box on standalone sidekiq. It would be nice to have at least an instruction in the README
@inderps if you don't need rails metrics you can now upgrade to yabeda 0.8 and remove yabeda-rails gem: Yabeda will configure itself automatically.
For non-rails usage I added a note into README.
I'm running 'rails', '4.2.9' sidekiq (5.2.7)
And I get following error