Skip to content

Commit

Permalink
Update async document
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Jan 3, 2021
1 parent d435b12 commit 58f9c29
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sentry-ruby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ config.async = lambda { |event| SentryJob.perform_later(event) }

class SentryJob < ActiveJob::Base
queue_as :default
discard_on ActiveJob::DeserializationError # this will prevent infinite loop when there's an issue deserializing SentryJob

def perform(event)
Sentry.send_event(event)
Expand Down

0 comments on commit 58f9c29

Please sign in to comment.