module Sentry::Rake::Application

Public Instance Methods

display_error_message(ex) click to toggle source
Calls superclass method
# File lib/sentry/rake.rb, line 7
def display_error_message(ex)
  Sentry.capture_exception(ex, hint: { background: false }) do |scope|
    task_name = top_level_tasks.join(' ')
    scope.set_transaction_name(task_name)
    scope.set_tag("rake_task", task_name)
  end if Sentry.initialized? && !Sentry.configuration.skip_rake_integration

  super
end