From a558a6df3b60fa6ba091b3ef315dd7f9660d4ab5 Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Thu, 16 Feb 2023 10:47:58 +0100 Subject: [PATCH] Shorten message name for sentry hub cloning --- lib/runner/connection.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/runner/connection.rb b/lib/runner/connection.rb index d7ec7562..ad23ae5b 100644 --- a/lib/runner/connection.rb +++ b/lib/runner/connection.rb @@ -39,7 +39,7 @@ class Runner::Connection @socket.on(event_type) do |event| # The initial locale when establishing the connection is used for all callbacks I18n.with_locale(@locale) do - clone_sentry_hub_from_sentry_span(sentry_span) + clone_sentry_hub_from_span(sentry_span) __send__(:"on_#{event_type}", event, sentry_span) end end @@ -229,7 +229,7 @@ class Runner::Connection # The methods below are inspired by the Sentry::Net:HTTP class # and adapted to the Websocket protocol running with EventMachine. - def clone_sentry_hub_from_sentry_span(sentry_span) + def clone_sentry_hub_from_span(sentry_span) Thread.current.thread_variable_set(Sentry::THREAD_LOCAL, sentry_span.transaction.hub) if sentry_span end