Add optional StatsD performance tracking
This commit is contained in:
parent
7cfd5b680a
commit
306eb6e9c9
7 changed files with 43 additions and 4 deletions
11
app/lib/statsd_monitor.rb
Normal file
11
app/lib/statsd_monitor.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class StatsDMonitor
|
||||
def initialize(app)
|
||||
@app = app
|
||||
end
|
||||
|
||||
def call(env)
|
||||
@app.call(env)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue