diff --git a/ruby/sinatra-puma/app/app.rb b/ruby/sinatra-puma/app/app.rb index 261f17b2..b00fe9da 100644 --- a/ruby/sinatra-puma/app/app.rb +++ b/ruby/sinatra-puma/app/app.rb @@ -80,3 +80,11 @@ class AnotherCustomError < StandardError "Cron check-in sent!" end + +get "/heartbeat" do + Appsignal::CheckIn.heartbeat("custom-heartbeat-checkin") + + "Heartbeat check-in sent!" +end + +Appsignal::CheckIn.heartbeat("continuous-heartbeat-checkin", continuous: true)