-
Notifications
You must be signed in to change notification settings - Fork 15
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
NoMethodError: undefined method `sidekiq_jobs_enqueued_total' for Yabeda:Module #10
Comments
Hi, @inderps. Are you using gem yabeda-rails or is there only Please try to add |
@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. |
@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. |
* master: Migrate from Travis CI to GitHub Actions for tests and releases 0.7.0: Apply tags from `yabeda_tags` to all metrics inside a job Switch from current time to monotonic time for measuring job runtime Add basic specs Add Yabeda configuration instruction into README. Fixes yabeda-rb#10
I'm running
'rails', '4.2.9'
sidekiq (5.2.7)
And I get following error
The text was updated successfully, but these errors were encountered: