Skip to content

Commit 827ab4e

Browse files
authored
README: don't need to call to_hash in async anymore
1 parent 1cfd558 commit 827ab4e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,8 @@ Using a thread to send events will be adequate for truly parallel Ruby platforms
9999
We recommend creating a background job, using your background job processor, that will send Sentry notifications in the background. Rather than enqueuing an entire Raven::Event object, we recommend providing the Hash representation of an event as a job argument. Here’s an example for ActiveJob:
100100

101101
```ruby
102-
config.async = lambda { |event|
103-
SentryJob.perform_later(event.to_hash)
104-
}
102+
config.async = lambda { |event| SentryJob.perform_later(event) }
103+
105104
class SentryJob < ActiveJob::Base
106105
queue_as :default
107106

0 commit comments

Comments
 (0)