Sha256: d48a4392db2c9c4c8696d614837b57299375e43fe2f2dc75c26484469b309339

Contents?: true

Size: 511 Bytes

Versions: 5

Compression:

Stored size: 511 Bytes

Contents

module Sentry
  module Rails
    # This is not a user-facing class. You should use it with Rails 7.0's error reporter feature and its interfaces.
    # See https://github.com/rails/rails/blob/main/activesupport/lib/active_support/error_reporter.rb for more information.
    class ErrorSubscriber
      def report(error, handled:, severity:, context:)
        Sentry::Rails.capture_exception(error, level: severity, contexts: { "rails.error" => context }, tags: { handled: handled })
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sentry-rails-5.3.1 lib/sentry/rails/error_subscriber.rb
sentry-rails-5.3.0 lib/sentry/rails/error_subscriber.rb
sentry-rails-5.2.1 lib/sentry/rails/error_subscriber.rb
sentry-rails-5.2.0 lib/sentry/rails/error_subscriber.rb
sentry-rails-5.1.1 lib/sentry/rails/error_subscriber.rb