From 0cfd77e6643dcc2460b9bd312f7fdb8b695b7561 Mon Sep 17 00:00:00 2001 From: Adam Renberg Tamm Date: Fri, 8 Nov 2024 13:19:47 +0100 Subject: [PATCH] Switch to ActiveSupport::Notifications.monotonic_subscribe --- lib/bugsnag/integrations/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bugsnag/integrations/railtie.rb b/lib/bugsnag/integrations/railtie.rb index c875972a..b18e755a 100644 --- a/lib/bugsnag/integrations/railtie.rb +++ b/lib/bugsnag/integrations/railtie.rb @@ -15,7 +15,7 @@ class Railtie < ::Rails::Railtie # @api private # @param event [Hash] details of the event to subscribe to def event_subscription(event) - ActiveSupport::Notifications.subscribe(event[:id]) do |*, event_id, data| + ActiveSupport::Notifications.monotonic_subscribe(event[:id]) do |*, event_id, data| filtered_data = data.slice(*event[:allowed_data]) filtered_data[:event_name] = event[:id] filtered_data[:event_id] = event_id