traxor 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/traxor/rack/middleware/pre.rb +4 -1
- data/lib/traxor/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b996a9c07f5b8771d74ddb2cd4a1909880f570461659e2d4052e2f6f6dc6fcef
|
4
|
+
data.tar.gz: 616875c5017e5eee261cc4e16fdc210e36e1a582123278c007527ee5e0606535
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7026b7d6ace21cd548c6bebc83469bb5b9fa126ecd85adf583a5cdab0cb4cc20cbbdf17485cfd239c7d00a355e06dd624614982e467662375a3d5b2e167d451c
|
7
|
+
data.tar.gz: a19c65d806aa4279446cb7a26de6e7bac869f6645f7589ac0e3db000b76f619519c7598961b0e8e9e97e3876ea83427d4c4bca87832661bd2d556e02f1e78daa
|
data/Gemfile.lock
CHANGED
@@ -17,7 +17,10 @@ module Traxor
|
|
17
17
|
queue_duration = nil
|
18
18
|
request_start = env['HTTP_X_REQUEST_START']
|
19
19
|
if request_start
|
20
|
-
|
20
|
+
parsed = parse_request_queue(request_start)
|
21
|
+
delta = env['traxor.rack.middleware.pre_middleware_start'].to_f - parsed.to_f
|
22
|
+
Traxor.config.logger.info "PARSED queue X-REQUEST-START #{parsed.to_s}, in sec: #{parsed.to_i}, Now: #{Time.now.to_i}, delta: #{delta}"
|
23
|
+
queue_duration = (env['traxor.rack.middleware.pre_middleware_start'].to_f - parsed.to_f) * 1_000
|
21
24
|
end
|
22
25
|
status, headers, body = @app.call(env)
|
23
26
|
env['traxor.rack.middleware.post_middleware_end'] = Time.now.to_f
|
data/lib/traxor/version.rb
CHANGED