Skip to content

Commit

Permalink
add action to context
Browse files Browse the repository at this point in the history
  • Loading branch information
mikehale committed Mar 7, 2024
1 parent 1703e81 commit 8e8d75c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/honeybadger/plugins/active_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ def perform_around(job, block)
def context(job)
{
component: job.class,
action: 'perform',
enqueued_at: job.enqueued_at,
executions: job.executions,
job_class: job.class,
Expand Down
1 change: 1 addition & 0 deletions spec/integration/rails/active_job_adapter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
expect(Honeybadger::Backend::Test.notifications[:notices][0].context).to \
include(
component: ErrorJob,
action: 'perform',
enqueued_at: anything,
executions: 1,
job_class: ErrorJob,
Expand Down

0 comments on commit 8e8d75c

Please sign in to comment.