Sentry.init do |config| config.dsn = ENV['SENTRY_DSN'] config.async = lambda do |event, hint| SentryWorker.perform_async(event, hint) end end