Sha256: 108d54a425cd8a6b0bfc030e628ff29362a01941e21a362fbea95d6e7836088a

Contents?: true

Size: 532 Bytes

Versions: 12

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

require 'active_support'

module DHS
  module Interceptors
    module ExtendedRollbar
      extend ActiveSupport::Concern

      class Interceptor < DHC::Interceptor
        def after_response
          return unless DHS::Interceptors::ExtendedRollbar::ThreadRegistry.log
          DHS::Interceptors::ExtendedRollbar::ThreadRegistry.log.push(request: request, response: response)
        end
      end
    end
  end

  const_set('ExtendedRollbar', DHS::Interceptors::ExtendedRollbar::Interceptor)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dhs-1.6.0 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.5.0 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.4.2 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.4.1 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.4.0 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.3.0 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.2.0 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.1.0 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.0.3 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.0.2 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.0.1 lib/dhs/interceptors/extended_rollbar/interceptor.rb
dhs-1.0.0 lib/dhs/interceptors/extended_rollbar/interceptor.rb