lib/sentry/rails/error_subscriber.rb in sentry-rails-5.7.0 vs lib/sentry/rails/error_subscriber.rb in sentry-rails-5.8.0
- old
+ new
@@ -12,9 +12,14 @@
if source
return if SKIP_SOURCES.match?(source)
tags[:source] = source
end
+ if context[:tags].is_a?(Hash)
+ context = context.dup
+ tags.merge!(context.delete(:tags))
+ end
+
Sentry::Rails.capture_exception(error, level: severity, contexts: { "rails.error" => context }, tags: tags)
end
end
end
end