pboling/rack-insight

View on GitHub
lib/rack/insight/instrumentation/backstage.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Rack::Insight::Instrumentation
  module Backstage
    def backstage
      Thread.current["instrumented_backstage"] = true
      yield
    ensure
      Thread.current["instrumented_backstage"] = false
    end
  end
end