Sha256: 5d7b591712ecc1fd0a9c6a0ad94932a4e4350169b5082e3e51f779fd10f59084

Contents?: true

Size: 464 Bytes

Versions: 17

Compression:

Stored size: 464 Bytes

Contents

require 'airbrake/rails/event'

module Airbrake
  module Rails
    # @api private
    # @since v9.2.0
    class Excon
      def call(*args)
        routes = Airbrake::Rack::RequestStore[:routes]
        return if !routes || routes.none?

        event = Airbrake::Rails::Event.new(*args)

        routes.each do |_route_path, params|
          params[:groups][:http] ||= 0
          params[:groups][:http] += event.duration
        end
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
airbrake-10.0.0 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.5.5 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.5.4 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.5.3 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.5.2 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.5.1 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.5.0 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.4.5 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.4.4 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.4.3 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.4.2 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.4.1 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.4.0 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.3.0 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.2.2 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.2.1 lib/airbrake/rails/excon_subscriber.rb
airbrake-9.2.0 lib/airbrake/rails/excon_subscriber.rb