Skip to content

Commit

Permalink
Do not run minutely probes on console
Browse files Browse the repository at this point in the history
When running the Rails console, the minutely probes should not be
active.
  • Loading branch information
unflxw committed May 2, 2023
1 parent d6d7ef5 commit 4cd1601
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changesets/do-not-run-minutely-probes-on-rails-console.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
bump: "patch"
type: "fix"
---

Do not run minutely probes on Rails console
4 changes: 4 additions & 0 deletions lib/appsignal/integrations/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ class Railtie < ::Rails::Railtie
Appsignal::Integrations::Railtie.initialize_appsignal(app)
end

console do
Appsignal::Minutely.stop
end

def self.initialize_appsignal(app)
# Load config
Appsignal.config = Appsignal::Config.new(
Expand Down

0 comments on commit 4cd1601

Please sign in to comment.