Sha256: 9f892f42669078a76f003b76c65fbc9abaf19a0fa26e89e8e5f39a3e47c1d558

Contents?: true

Size: 444 Bytes

Versions: 26

Compression:

Stored size: 444 Bytes

Contents

require 'rake'
require 'rake/task'
require 'raven/integrations/tasks'

module Rake
  class Application
    alias orig_display_error_messsage display_error_message
    def display_error_message(ex)
      Raven.capture_exception(
        ex,
        :transaction => top_level_tasks.join(' '),
        :logger => 'rake',
        :tags => { 'rake_task' => top_level_tasks.join(' ') }
      )
      orig_display_error_messsage(ex)
    end
  end
end

Version data entries

26 entries across 26 versions & 3 rubygems

Version Path
sentry-raven-3.1.2 lib/raven/integrations/rake.rb
sentry-raven-3.1.1 lib/raven/integrations/rake.rb
sentry-raven-3.1.0 lib/raven/integrations/rake.rb
sentry-raven-3.0.4 lib/raven/integrations/rake.rb
sentry-raven-3.0.3 lib/raven/integrations/rake.rb
sentry-raven-3.0.2 lib/raven/integrations/rake.rb
sentry-raven-3.0.1 lib/raven/integrations/rake.rb
sentry-raven-3.0.0 lib/raven/integrations/rake.rb
sentry-raven-2.13.0 lib/raven/integrations/rake.rb
sentry-raven-2.12.3 lib/raven/integrations/rake.rb
sentry-raven-2.12.2 lib/raven/integrations/rake.rb
sentry-raven-2.12.1 lib/raven/integrations/rake.rb
sentry-raven-2.12.0 lib/raven/integrations/rake.rb
sentry-raven-2.11.3 lib/raven/integrations/rake.rb
sentry-raven-2.11.2 lib/raven/integrations/rake.rb
sentry-raven-2.11.1 lib/raven/integrations/rake.rb
sentry-raven-2.11.0 lib/raven/integrations/rake.rb
sentry-raven-2.10.0 lib/raven/integrations/rake.rb
sentry-raven-2.9.0 lib/raven/integrations/rake.rb
sentry-raven-2.8.0 lib/raven/integrations/rake.rb