Module: Rack::Insight::Instrumentation::Backstage

Included in:
Instrument, Probe::ProbeRunner
Defined in:
lib/rack/insight/instrumentation/backstage.rb

Instance Method Summary collapse

Instance Method Details

#backstageObject



3
4
5
6
7
8
# File 'lib/rack/insight/instrumentation/backstage.rb', line 3

def backstage
  Thread.current["instrumented_backstage"] = true
  yield
ensure
  Thread.current["instrumented_backstage"] = false
end