yabeda-rb / yabeda-rails

Yabeda plugin to collect basic metrics for Rails applications
MIT License
155 stars 20 forks source link

Exploring ways of disabling all default metrics #25

Open AdithyaContlo opened 1 year ago

AdithyaContlo commented 1 year ago

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?

Envek commented 1 year ago

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?