Sha256: 5037688aa8c307a2fc40b9157a9864c025ebbadaf15257eab127b54ca88fdfc3
Contents?: true
Size: 709 Bytes
Versions: 12
Compression:
Stored size: 709 Bytes
Contents
# frozen_string_literal: true require "rake" require "rake/task" module Sentry module Rake module Application # @api private def display_error_message(ex) mechanism = Sentry::Mechanism.new(type: "rake", handled: false) Sentry.capture_exception(ex, hint: { mechanism: mechanism }) 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
12 entries across 12 versions & 2 rubygems