yabeda-rails icon indicating copy to clipboard operation
yabeda-rails copied to clipboard

Exploring ways of disabling all default metrics

Open AdithyaContlo opened this issue 2 years ago • 1 comments

In the current documentation could not find any way of disabling all the metrics at once. Maybe missing something, could someone please help me out?

AdithyaContlo avatar Mar 29 '23 08:03 AdithyaContlo

Hey! Sorry for the late reply.

Please tell more about your use case.

Do you want to skip both declaration and collection of all rails-specific metrics for the whole process lifetime? While there is no setting to disable everything at once at the moment, you can just not require the gem in the first place using gem "yabeda-rails", require: your_condition?.

Or do you want to disable and re-enable metrics collection during runtime?

Envek avatar Aug 02 '23 06:08 Envek