hackatime/config/initializers/autotuner.rb
Echo 64fc0f1f1b
better error handling (#677)
* swap honeybadger for sentry

* better error pages
2025-12-01 12:33:01 -05:00

11 lines
313 B
Ruby

# Enable autotuner. Alternatively, call Autotuner.sample_ratio= with a value
# between 0 and 1.0 to sample on a portion of instances.
Autotuner.enabled = true
Autotuner.reporter = proc do |report|
Sentry.capture_message(
"Autotuner Suggestion",
level: :info,
extra: { report: report.to_s }
)
end