Changelog

Improving AppSignal, one deploy at a time.

May 08, 2024

Report Active Job errors only on discard

Ruby3.7.3

Added

  • Add option to activejob_report_errors option to only report errors when a job is discard by Active Job. In the example below the job is retried twice. If it fails with an error twice the job is discarded. If activejob_report_errors is set to discard, you will only get an error reported when the job is discarded. This new discard value only works for Active Job 7.1 and newer.

    Ruby
    class ExampleJob < ActiveJob::Base retry_on StandardError, :attempts => 2 # ... end

    More information in our Active Job documentation.

  • Track Active Job executions per job. When a job is retried the "executions" metadata for Active Job jobs goes up by one for every retry. We now track this as the executions tag on the job sample.

See the Ruby gem 3.7.3 changelog for more information.

View all Ruby updates

Start your free trial

Don’t let the bad bugs bite. Try AppSignal for free.

AppSignal offers a 30-day free trial, no credit card is required. All features are available in all plans. Start monitoring your application in just a few clicks!