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

Fix console detection and improve rake detection #192

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

adamlogic
Copy link
Collaborator

In #180, we suppressed starting the reporter in rake tasks and in a Rails console session. This was motivated by a customer whose build process was reporting invalid metrics, and our own annoyance with the extra output in console sessions.

This PR cleans up and simplifies that work. I'm not sure why I added logic to both the Railtie and the collectors.

This also fixes a scenario where Rails::Console is defined outside of a console session. This seems to happen when using the safer_rails_console gem.

@adamlogic adamlogic marked this pull request as ready for review January 23, 2024 17:23
@adamlogic
Copy link
Collaborator Author

Possible fix for #184

@adamlogic adamlogic merged commit d6ae321 into main Jan 25, 2024
61 checks passed
@adamlogic adamlogic deleted the fix-console-detection branch January 25, 2024 13:25
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

Successfully merging this pull request may close these issues.

1 participant