class Sentry::Rails::ActiveJobExtensions::SentryReporter

def sentry_serialize_arguments(argument)

def sentry_serialize_arguments(argument)
  case argument
  when Hash
    argument.transform_values { |v| sentry_serialize_arguments(v) }
  when Array, Enumerable
    argument.map { |v| sentry_serialize_arguments(v) }
  when ->(v) { v.respond_to?(:to_global_id) }
    argument.to_global_id.to_s rescue argument
  else
    argument
  end
end