Raven Ruby v4.6.0 Release Notes

  • ๐Ÿ”‹ Features

    • โž• Add sentry-resque #1476
    • โž• Add tracing support to sentry-resque #1480
    • ๐Ÿ’Ž Set user to the current scope via sidekiq middleware #1469
    • โž• Add tracing support to sentry-delayed_job #1482

    IMPORTANT

    If your application processes a large number of background jobs and has tracing enabled, it is recommended to check your traces_sampler (or switch to traces_sampler) and give the background job operations a smaller rate:

    Sentry.init do |config|
      config.traces_sampler = lambda do |sampling_context|
        transaction_context = sampling_context[:transaction_context]
        op = transaction_context[:op]
    
        case op
        when /request/
          # sampling for requests
          0.1
        when /delayed_job/ # or resque
          0.001 # adjust this value
        else
          0.0 # ignore all other transactions
        end
      end
    end
    

    ๐Ÿ‘ท This is to prevent the background job tracing consumes too much of your transaction quota.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ’Ž Force encode request body if it's a string #1484