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