You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config.full_retention_period =30.days # Delete records older than this
220
+
config.max_table_records = { # Maximum records per table
221
+
rails_pulse_operations:100_000,
222
+
rails_pulse_requests:50_000,
223
+
rails_pulse_job_runs:50_000,
224
+
rails_pulse_queries:10_000,
225
+
rails_pulse_routes:1_000,
226
+
rails_pulse_jobs:1_000
199
227
}
200
228
201
229
# Multiple database support (optional)
@@ -206,6 +234,117 @@ RailsPulse.configure do |config|
206
234
end
207
235
```
208
236
237
+
## Background Job Monitoring
238
+
239
+
Rails Pulse provides comprehensive monitoring for ActiveJob background jobs, tracking performance, failures, and execution details across all major job adapters.
240
+
241
+
### Overview
242
+
243
+
Background job monitoring is **enabled by default** and works automatically with any ActiveJob adapter. Rails Pulse captures:
**Job argument capture is disabled by default** to protect sensitive information. Job arguments may contain:
326
+
- User credentials or tokens
327
+
- Personal identifiable information (PII)
328
+
- API keys or secrets
329
+
- Sensitive business data
330
+
331
+
Only enable `capture_job_arguments` in development or when explicitly needed for debugging. Consider using parameter filtering if you need to capture arguments:
332
+
333
+
```ruby
334
+
# In your job class
335
+
classSensitiveJob < ApplicationJob
336
+
defperform(user_id:, api_key:)
337
+
# Rails Pulse will track execution but not arguments by default
338
+
end
339
+
end
340
+
```
341
+
342
+
**Performance impact:**
343
+
- Minimal overhead: ~1-2ms per job execution
344
+
- No blocking of job processing
345
+
- Configurable cleanup prevents database growth
346
+
- Can be disabled per-job or globally
347
+
209
348
## Authentication
210
349
211
350
Rails Pulse supports flexible authentication to secure access to your monitoring dashboard.
Rails Pulse includes a flexible tagging system that allows you to categorize and organize your performance data. Tag routes, requests, and queries with custom labels to better organize and filter your monitoring data.
399
+
Rails Pulse includes a flexible tagging system that allows you to categorize and organize your performance data. Tag routes, requests, queries, jobs, and job runs with custom labels to better organize and filter your monitoring data.
261
400
262
401
### Configuring Tags
263
402
@@ -280,7 +419,7 @@ end
280
419
281
420
**Tag from the UI:**
282
421
283
-
1. Navigate to any route, request, or query detail page
422
+
1. Navigate to any route, request, query, job, or job run detail page
284
423
2. Click the "+ tag" button next to the record
285
424
3. Select from your configured tags
286
425
4. Remove tags by clicking the × button on any tag badge
0 commit comments