app/jobs/sentry/send_event_job.rb in sentry-rails-4.3.1 vs app/jobs/sentry/send_event_job.rb in sentry-rails-4.3.2

- old
+ new

@@ -20,9 +20,14 @@ logger.error "Discarded #{self.class} due to a #{exception}. The original exception was #{error.cause.inspect}." end end def perform(event, hint = {}) + # users don't need the tracing result of this job + if transaction = Sentry.get_current_scope.span + transaction.instance_variable_set(:@sampled, false) + end + Sentry.send_event(event, hint) end end end else