Skip to content

Commit

Permalink
Emit heartbeats from Rake tasks
Browse files Browse the repository at this point in the history
When a Rake task starts, emit a start heartbeat event. If the Rake
task finishes successfully, emit a finish heartbeat event.
  • Loading branch information
unflxw committed Mar 25, 2024
1 parent 5661043 commit 1861734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/appsignal/integrations/rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Appsignal
module Integrations
module RakeIntegration
def execute(*args)
super
Appsignal.heartbeat(name) { super }
rescue Exception => error # rubocop:disable Lint/RescueException
# Format given arguments and cast to hash if possible
params, _ = args
Expand Down

0 comments on commit 1861734

Please sign in to comment.