mirror of
https://github.com/we-promise/sure.git
synced 2026-04-07 06:21:23 +00:00
feat: Enable Skylight ActiveJob probe for background worker visibility (#1108)
* feat: enable Skylight instrumentation for ActiveJob * Fix: Oops, load only in prod
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user