class Sentry::Rails::Tracing::ActionControllerSubscriber
def self.subscribe!
def self.subscribe! Sentry.logger.warn <<~MSG DEPRECATION WARNING: sentry-rails has changed its approach on controller span recording and #{self.name} is now depreacted. Please stop using or referencing #{self.name} as it will be removed in the next major release. MSG subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload| controller = payload[:controller] action = payload[:action] record_on_current_span( op: OP_NAME, start_timestamp: payload[START_TIMESTAMP_NAME], description: "#{controller}##{action}", duration: duration ) do |span| payload = payload.dup cleanup_data(payload) span.set_data(:payload, payload) span.set_http_status(payload[:status]) end end end