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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: de2e0c72345192d52a355f1d1092b59cd2652cf3d2e3611238a525362f700ae2
4
- data.tar.gz: 733a91fe1e2813188b79fc6bab6853a8cc1397d35c1a4d0ef9acbc64930a7fc2
3
+ metadata.gz: b996a9c07f5b8771d74ddb2cd4a1909880f570461659e2d4052e2f6f6dc6fcef
4
+ data.tar.gz: 616875c5017e5eee261cc4e16fdc210e36e1a582123278c007527ee5e0606535
5
5
  SHA512:
6
- metadata.gz: 8c1818372a18ed552085161498b68e0477bb96e0f959eea5a8a89a56c7e293d6962f5c909964c4d337973f35e62046b173d138f09905fd9ed9385a7cafab6226
7
- data.tar.gz: 6f247f75df7d0eee65ef8681df0415abf8ec3b7006247c7b1faf23375e6b7659def46662e6a8f1faf57c08e6b0e2fa492845341b5662d026d7e610ae7e44f586
6
+ metadata.gz: 7026b7d6ace21cd548c6bebc83469bb5b9fa126ecd85adf583a5cdab0cb4cc20cbbdf17485cfd239c7d00a355e06dd624614982e467662375a3d5b2e167d451c
7
+ data.tar.gz: a19c65d806aa4279446cb7a26de6e7bac869f6645f7589ac0e3db000b76f619519c7598961b0e8e9e97e3876ea83427d4c4bca87832661bd2d556e02f1e78daa
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- traxor (0.1.10)
4
+ traxor (0.1.11)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -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
- queue_duration = (env['traxor.rack.middleware.pre_middleware_start'].to_f - parse_request_queue(request_start).to_f) * 1_000
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
@@ -1,3 +1,3 @@
1
1
  module Traxor
2
- VERSION = '0.1.10'.freeze
2
+ VERSION = '0.1.11'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: traxor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.10
4
+ version: 0.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Hansen