Skip to content

Commit 3297cb7

Browse files
committed
Merge pull request #431 from nateberkopec/fix-delayedjob-context
Fix DelayedJob with handlers
2 parents 751d227 + 5fd5338 commit 3297cb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/raven/integrations/delayed_job.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ class Raven < ::Delayed::Plugin
1717
:id => job.id,
1818
:priority => job.priority,
1919
:attempts => job.attempts,
20-
:handler => job.handler,
20+
# handlers are YAML objects in strings, we definitely can't
21+
# report all of that or the event will get truncated randomly
22+
:handler => job.handler[0...100],
2123
:last_error => job.last_error,
2224
:run_at => job.run_at,
2325
:locked_at => job.locked_at,

0 commit comments

Comments
 (0)