Sha256: deb46d15bc26ec364038dfbd5a799bfa078b080a49cd8c448169bc6237980b57

Contents?: true

Size: 527 Bytes

Versions: 43

Compression:

Stored size: 527 Bytes

Contents

module Raven
  module ActiveSupportBreadcrumbs
    class << self
        def add(name, started, _finished, _unique_id, data)
          Raven.breadcrumbs.record do |crumb|
            crumb.data = data
            crumb.category = name
            crumb.timestamp = started.to_i
          end
        end

        def inject
          ActiveSupport::Notifications.subscribe(/.*/) do |name, started, finished, unique_id, data|
            add(name, started, finished, unique_id, data)
          end
        end
    end
  end
end

Version data entries

43 entries across 43 versions & 3 rubygems

Version Path
sentry-raven-2.6.2 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.6.1 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.6.0 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.5.3 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.5.2 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.5.1 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.5.0 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.4.0 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.3.1 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.3.0 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.2.0 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.1.4 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.1.3 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.1.2 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.1.1 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.1.0 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.0.2 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.0.1 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-2.0.0 lib/raven/breadcrumbs/activesupport.rb
sentry-raven-1.2.3 lib/raven/breadcrumbs/activesupport.rb