Skip to content
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

Exploring ways of disabling all default metrics #25

Open
AdithyaContlo opened this issue Mar 29, 2023 · 1 comment
Open

Exploring ways of disabling all default metrics #25

AdithyaContlo opened this issue Mar 29, 2023 · 1 comment

Comments

@AdithyaContlo
Copy link

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
Copy link
Member

Envek commented Aug 2, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants