Sha256: 884d527f25738f5b32354a48e1bf302a4e16eab5dfc290ce3d9cde9c194eca6a

Contents?: true

Size: 528 Bytes

Versions: 29

Compression:

Stored size: 528 Bytes

Contents

module Bugsnag::Middleware
  ##
  # Adds breadcrumbs to the report
  class Breadcrumbs
    ##
    # @param next_callable [#call] the next callable middleware
    def initialize(next_callable)
      @next = next_callable
    end

    ##
    # Execute this middleware
    #
    # @param report [Bugsnag::Report] the report being iterated over
    def call(report)
      breadcrumbs = report.configuration.breadcrumbs.to_a
      report.breadcrumbs = breadcrumbs unless breadcrumbs.empty?
      @next.call(report)
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bugsnag-6.27.1 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.26.4 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.26.3 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.26.2 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.26.1 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.26.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.25.2 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.25.1 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.25.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.24.2 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.24.1 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.24.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.23.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.22.1 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.21.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.20.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.19.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.18.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.17.0 lib/bugsnag/middleware/breadcrumbs.rb
bugsnag-6.16.0 lib/bugsnag/middleware/breadcrumbs.rb