Class: Bugsnag::Middleware::Breadcrumbs
- Inherits:
-
Object
- Object
- Bugsnag::Middleware::Breadcrumbs
- Defined in:
- lib/bugsnag/middleware/breadcrumbs.rb
Overview
Adds breadcrumbs to the report
Instance Method Summary collapse
-
#call(report) ⇒ Object
Execute this middleware.
-
#initialize(next_callable) ⇒ Breadcrumbs
constructor
A new instance of Breadcrumbs.
Constructor Details
#initialize(next_callable) ⇒ Breadcrumbs
Returns a new instance of Breadcrumbs.
7 8 9 |
# File 'lib/bugsnag/middleware/breadcrumbs.rb', line 7 def initialize(next_callable) @next = next_callable end |
Instance Method Details
#call(report) ⇒ Object
Execute this middleware
15 16 17 18 19 |
# File 'lib/bugsnag/middleware/breadcrumbs.rb', line 15 def call(report) = report.configuration..to_a report. = unless .empty? @next.call(report) end |