unicorn-instruments 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/unicorn-instruments.rb +2 -1
- metadata +1 -1
data/unicorn-instruments.rb
CHANGED
@@ -21,7 +21,8 @@ class Unicorn::HttpServer
|
|
21
21
|
process_client(client)
|
22
22
|
nr += 1
|
23
23
|
elapsed = (Time.now.to_f - start_process.to_f) * 1000
|
24
|
-
|
24
|
+
reqid = request.env['HTTP_HEROKU_REQUEST_ID']
|
25
|
+
$stdout.puts("request-id=#{reqid} measure.unicorn.process=#{elapsed.round}ms")
|
25
26
|
worker.tick = Time.now.to_i
|
26
27
|
end
|
27
28
|
break if nr < 0
|