class Instrumenter::InstrumenterMiddleware
Public Class Methods
new(app)
click to toggle source
# File lib/instrumenter/instrumenter_middleware.rb, line 3 def initialize(app) @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/instrumenter/instrumenter_middleware.rb, line 7 def call(env) Instrumenter.setup(env) begin @app.call(env) ensure Instrumenter.clear end end