class Bugsnag::Middleware::Breadcrumbs
Adds breadcrumbs to the report
Public Class Methods
Source
# File lib/bugsnag/middleware/breadcrumbs.rb, line 7 def initialize(next_callable) @next = next_callable end
@param next_callable [#call] the next callable middleware
Public Instance Methods
Source
# File lib/bugsnag/middleware/breadcrumbs.rb, line 15 def call(report) breadcrumbs = report.configuration.breadcrumbs.to_a report.breadcrumbs = breadcrumbs unless breadcrumbs.empty? @next.call(report) end
Execute this middleware
@param report [Bugsnag::Report] the report being iterated over