Sha256: 80fb5cc78fac01015befa51c52442b840849aad237631d09135b4643ca719046

Contents?: true

Size: 302 Bytes

Versions: 5

Compression:

Stored size: 302 Bytes

Contents

# encoding: utf-8

require 'one_apm/rack/middleware_base'

module OneApm
  module Rack
    class MiddlewareHooks < MiddlewareBase

      def self.needed?
        !OneApm::Manager.config[:disable_rack_middleware]
      end

      def traced_call(env)
        @app.call(env)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
oneapm_rpm-1.4.2 lib/one_apm/rack/middleware_hooks.rb
oneapm_rpm-1.4.1 lib/one_apm/rack/middleware_hooks.rb
oneapm_rpm-1.4.0 lib/one_apm/rack/middleware_hooks.rb
oneapm_rpm-1.3.7 lib/one_apm/rack/middleware_hooks.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/rack/middleware_hooks.rb