Class: NewRelicMiddleware::TrackingSupport
- Inherits:
-
Object
- Object
- NewRelicMiddleware::TrackingSupport
- Defined in:
- lib/newrelic-middleware.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ TrackingSupport
constructor
A new instance of TrackingSupport.
Constructor Details
#initialize(app) ⇒ TrackingSupport
Returns a new instance of TrackingSupport.
5 6 7 |
# File 'lib/newrelic-middleware.rb', line 5 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
9 10 11 12 |
# File 'lib/newrelic-middleware.rb', line 9 def call(env) env["HTTP_X_MIDDLEWARE_START"] = "t=#{(Time.now.to_f * 1000000).to_i}" @app.call env end |