Sha256: 929335e224d246a0bf5d859ca82483d45d5f43779e81f462782ad3868ec9ee3a

Contents?: true

Size: 604 Bytes

Versions: 8

Compression:

Stored size: 604 Bytes

Contents

# frozen_string_literal: true

require "rake"
require "rake/task"

module Sentry
  module Rake
    module Application
      # @api private
      def display_error_message(ex)
        Sentry.capture_exception(ex) do |scope|
          task_name = top_level_tasks.join(' ')
          scope.set_transaction_name(task_name, source: :task)
          scope.set_tag("rake_task", task_name)
        end if Sentry.initialized? && !Sentry.configuration.skip_rake_integration

        super
      end
    end
  end
end

# @api private
module Rake
  class Application
    prepend(Sentry::Rake::Application)
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
sentry-ruby-core-5.17.1 lib/sentry/rake.rb
sentry-ruby-5.17.1 lib/sentry/rake.rb
sentry-ruby-5.17.0 lib/sentry/rake.rb
sentry-ruby-core-5.17.0 lib/sentry/rake.rb
sentry-ruby-core-5.16.1 lib/sentry/rake.rb
sentry-ruby-5.16.1 lib/sentry/rake.rb
sentry-ruby-5.16.0 lib/sentry/rake.rb
sentry-ruby-core-5.16.0 lib/sentry/rake.rb