rails_error_dashboard 0.1.8 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afb7505fa151651854c20ca7db94e8d46a887944db7426dae5c0cc3af5c190c4
4
- data.tar.gz: d3fb030d07b2981913a26a7486b693e2937bdb4cd09448a7d60fc0996b046fe6
3
+ metadata.gz: 1c446ee6a83da642ddc211be29ccac3f3a74a3ee3e2f8c8bdf7e93bebcb13ed1
4
+ data.tar.gz: fb22f5fa6db4add1eeef839ec5fa7db7d47d987af935a5035024b358f558759f
5
5
  SHA512:
6
- metadata.gz: a2b3109a9c7744fcb9ef25fd1a498908fa036cfa86ddf68de7c6214ee9b500bbf9885d69e687418998db8fe0e6bfa4ddf244f28e3d138f4b315f4574113eb9e7
7
- data.tar.gz: 5553318a3b2c3accab1d2bcadeb70aad586511e98435e32e9ef84f648f2b3132bf5d8215178198522c0b15a193a29c40f22aacf5acbb4dfb51f5995d975fef53
6
+ metadata.gz: 4a0b48f1641eec4fb33b1db76dc4b85449fc51da7a1246bf67c7fabc8f0a528b052608038a5c3b19c6c7d9e925100a1d55bf66a83fcc3de982150f21cf177de8
7
+ data.tar.gz: fb38035f7780b14c82ea4175b0e1a3b2102d0634137dc22ee34183e111da58008663302522df3815414657c9b9628a19c7d08472a62e21a98b989839eff7e627
@@ -0,0 +1,172 @@
1
+ # frozen_string_literal: true
2
+
3
+ RailsErrorDashboard.configure do |config|
4
+ # ============================================================================
5
+ # AUTHENTICATION (Always Required)
6
+ # ============================================================================
7
+
8
+ # Dashboard authentication credentials
9
+ # ⚠️ CHANGE THESE BEFORE PRODUCTION! ⚠️
10
+ config.dashboard_username = ENV.fetch("ERROR_DASHBOARD_USER", "gandalf")
11
+ config.dashboard_password = ENV.fetch("ERROR_DASHBOARD_PASSWORD", "youshallnotpass")
12
+
13
+ # Require authentication for dashboard access
14
+ config.require_authentication = true
15
+
16
+ # Require authentication even in development mode
17
+ config.require_authentication_in_development = false
18
+
19
+ # ============================================================================
20
+ # CORE FEATURES (Always Enabled)
21
+ # ============================================================================
22
+
23
+ # Error capture via middleware and Rails.error subscriber
24
+ config.enable_middleware = true
25
+ config.enable_error_subscriber = true
26
+
27
+ # User model for error associations
28
+ config.user_model = "User"
29
+
30
+ # Error retention policy (days to keep errors before auto-deletion)
31
+ config.retention_days = 90
32
+
33
+ # ============================================================================
34
+ # NOTIFICATION SETTINGS
35
+ # ============================================================================
36
+ # Configure which notification channels you want to use.
37
+ # You can enable/disable any of these at any time by changing true/false.
38
+
39
+ # Slack Notifications - DISABLED
40
+ # To enable: Set config.enable_slack_notifications = true and configure webhook URL
41
+ config.enable_slack_notifications = false
42
+ # config.slack_webhook_url = ENV["SLACK_WEBHOOK_URL"]
43
+
44
+ # Email Notifications - DISABLED
45
+ # To enable: Set config.enable_email_notifications = true and configure recipients
46
+ config.enable_email_notifications = false
47
+ # config.notification_email_recipients = ENV.fetch("ERROR_NOTIFICATION_EMAILS", "").split(",").map(&:strip)
48
+ # config.notification_email_from = ENV.fetch("ERROR_NOTIFICATION_FROM", "errors@example.com")
49
+
50
+ # Discord Notifications - DISABLED
51
+ # To enable: Set config.enable_discord_notifications = true and configure webhook URL
52
+ config.enable_discord_notifications = false
53
+ # config.discord_webhook_url = ENV["DISCORD_WEBHOOK_URL"]
54
+
55
+ # PagerDuty Integration - DISABLED
56
+ # To enable: Set config.enable_pagerduty_notifications = true and configure integration key
57
+ config.enable_pagerduty_notifications = false
58
+ # config.pagerduty_integration_key = ENV["PAGERDUTY_INTEGRATION_KEY"]
59
+
60
+ # Generic Webhook Notifications - DISABLED
61
+ # To enable: Set config.enable_webhook_notifications = true and configure webhook URLs
62
+ config.enable_webhook_notifications = false
63
+ # config.webhook_urls = ENV.fetch("WEBHOOK_URLS", "").split(",").map(&:strip).reject(&:empty?)
64
+
65
+ # Dashboard base URL (used in notification links)
66
+ config.dashboard_base_url = ENV["DASHBOARD_BASE_URL"]
67
+
68
+ # ============================================================================
69
+ # PERFORMANCE & SCALABILITY
70
+ # ============================================================================
71
+
72
+ # Async Error Logging - DISABLED
73
+ # Errors are logged synchronously (blocking)
74
+ # To enable: Set config.async_logging = true and configure adapter
75
+ config.async_logging = false
76
+ # config.async_adapter = :sidekiq # Options: :sidekiq, :solid_queue, :async
77
+
78
+ # Backtrace size limiting (reduces storage by ~80%)
79
+ config.max_backtrace_lines = 50
80
+
81
+ # Error Sampling - DISABLED
82
+ # All errors are logged (100% sampling rate)
83
+ # To enable: Set config.sampling_rate < 1.0 (e.g., 0.1 for 10%)
84
+ config.sampling_rate = 1.0
85
+
86
+ # Ignored exceptions (skip logging these)
87
+ # config.ignored_exceptions = [
88
+ # "ActionController::RoutingError",
89
+ # "ActionController::InvalidAuthenticityToken",
90
+ # /^ActiveRecord::RecordNotFound/
91
+ # ]
92
+
93
+ # ============================================================================
94
+ # DATABASE CONFIGURATION
95
+ # ============================================================================
96
+
97
+ # Separate Error Database - DISABLED
98
+ # Errors are stored in your main application database
99
+ # To enable: Set config.use_separate_database = true and configure database.yml
100
+ config.use_separate_database = false
101
+
102
+ # ============================================================================
103
+ # ADVANCED ANALYTICS
104
+ # ============================================================================
105
+
106
+ # Baseline Anomaly Alerts - DISABLED
107
+ # To enable: Set config.enable_baseline_alerts = true
108
+ config.enable_baseline_alerts = false
109
+ # config.baseline_alert_threshold_std_devs = 2.0
110
+ # config.baseline_alert_severities = [ :critical, :high ]
111
+ # config.baseline_alert_cooldown_minutes = 120
112
+
113
+ # Fuzzy Error Matching - DISABLED
114
+ # To enable: Set config.enable_similar_errors = true
115
+ config.enable_similar_errors = false
116
+
117
+ # Co-occurring Errors - DISABLED
118
+ # To enable: Set config.enable_co_occurring_errors = true
119
+ config.enable_co_occurring_errors = false
120
+
121
+ # Error Cascade Detection - DISABLED
122
+ # To enable: Set config.enable_error_cascades = true
123
+ config.enable_error_cascades = false
124
+
125
+ # Error Correlation Analysis - DISABLED
126
+ # To enable: Set config.enable_error_correlation = true
127
+ config.enable_error_correlation = false
128
+
129
+ # Platform Comparison - DISABLED
130
+ # To enable: Set config.enable_platform_comparison = true
131
+ config.enable_platform_comparison = false
132
+
133
+ # Occurrence Pattern Detection - DISABLED
134
+ # To enable: Set config.enable_occurrence_patterns = true
135
+ config.enable_occurrence_patterns = false
136
+
137
+ # ============================================================================
138
+ # INTERNAL LOGGING (Silent by Default)
139
+ # ============================================================================
140
+ # Rails Error Dashboard logging is SILENT by default to keep your logs clean.
141
+ # Enable only for debugging gem issues or troubleshooting setup.
142
+
143
+ # Enable internal logging (default: false - silent)
144
+ config.enable_internal_logging = false
145
+
146
+ # Log level (default: :silent)
147
+ # Options: :debug, :info, :warn, :error, :silent
148
+ config.log_level = :silent
149
+
150
+ # Example: Enable verbose logging for debugging
151
+ # config.enable_internal_logging = true
152
+ # config.log_level = :debug
153
+
154
+ # Example: Log only errors (troubleshooting)
155
+ # config.enable_internal_logging = true
156
+ # config.log_level = :error
157
+
158
+ # ============================================================================
159
+ # ADDITIONAL CONFIGURATION
160
+ # ============================================================================
161
+
162
+ # Custom severity rules (override automatic severity classification)
163
+ # config.custom_severity_rules = {
164
+ # "PaymentError" => :critical,
165
+ # "ValidationError" => :low
166
+ # }
167
+
168
+ # Enhanced metrics (optional)
169
+ config.app_version = ENV["APP_VERSION"]
170
+ config.git_sha = ENV["GIT_SHA"]
171
+ # config.total_users_for_impact = 10000 # For user impact % calculation
172
+ end
data/config/routes.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  RailsErrorDashboard::Engine.routes.draw do
2
+ mount RailsErrorDashboard::Engine => '/error_dashboard'
2
3
  root to: "errors#overview"
3
4
 
4
5
  # Dashboard overview
@@ -199,7 +199,7 @@ module RailsErrorDashboard
199
199
  end
200
200
 
201
201
  def copy_migrations
202
- rake "rails_error_dashboard:install:migrations"
202
+ rails_command "rails_error_dashboard:install:migrations"
203
203
  end
204
204
 
205
205
  def add_route
@@ -1,3 +1,3 @@
1
1
  module RailsErrorDashboard
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_error_dashboard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anjan Jagirdar
@@ -311,6 +311,7 @@ files:
311
311
  - app/views/rails_error_dashboard/errors/platform_comparison.html.erb
312
312
  - app/views/rails_error_dashboard/errors/settings.html.erb
313
313
  - app/views/rails_error_dashboard/errors/show.html.erb
314
+ - config/initializers/rails_error_dashboard.rb
314
315
  - config/routes.rb
315
316
  - db/migrate/20251224000001_create_rails_error_dashboard_error_logs.rb
316
317
  - db/migrate/20251224081522_add_better_tracking_to_error_logs.rb
@@ -377,7 +378,7 @@ metadata:
377
378
  source_code_uri: https://github.com/AnjanJ/rails_error_dashboard
378
379
  changelog_uri: https://github.com/AnjanJ/rails_error_dashboard/blob/main/CHANGELOG.md
379
380
  post_install_message: "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n
380
- \ Rails Error Dashboard v0.1.8 installed successfully!\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F4E6
381
+ \ Rails Error Dashboard v0.1.9 installed successfully!\n━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\n\n\U0001F4E6
381
382
  Next steps to get started:\n\n 1. Run the installer:\n rails generate rails_error_dashboard:install\n\n
382
383
  \ 2. Run migrations:\n rails db:migrate\n\n 3. Mount the engine in config/routes.rb:\n
383
384
  \ mount RailsErrorDashboard::Engine => '/error_dashboard'\n\n 4. Start your