Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby

feat: Enable Skylight ActiveJob probe for background worker visibility (#1108)

Serge L947eb3fea914
diff --git a/config/application.rb b/config/application.rb
index 3a63072b26..1269f1aad0 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -39,6 +39,9 @@ module Sure
theme: [ "light", "dark" ] # available in view as params[:theme]
}
+ # Enable Skylight instrumentation for ActiveJob (background workers)
+ config.skylight.probes << "active_job" if defined?(Skylight)
+
# Enable Rack::Attack middleware for API rate limiting
config.middleware.use Rack::Attack