imprint 1.4.3.pre4 → 1.4.3.pre5

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
  SHA1:
3
- metadata.gz: 19847e0b5694b127c72eba667442421d45760829
4
- data.tar.gz: 2a05b5832173caa597612f5cb7ac8603a4839123
3
+ metadata.gz: 05980d80e0b7d629da935a72c8e65d703f9581d2
4
+ data.tar.gz: c0fa1271f5197f9a20c8674306866eaa4426246e
5
5
  SHA512:
6
- metadata.gz: 165f2a447d068fe2a920cd0bb3d44272b524b65ffd786ab44d0b621321478bfc14116b8dfb65780acad38f998f8432a91b0f12abb50fab08e58ecf65d5c732c2
7
- data.tar.gz: 83d9dde9d3f4cb3a0b3b0924edb66faed2805af89bc57f5486319aa65ef11ad4c841270eeef34aa0e92bce071c03254c9ce90e19ec55f3964691e116ee28b1f9
6
+ metadata.gz: 55c6061cc33b5746fb2122fff4573ac89f71faade2ddd8696b94cb8fb13a7db57c7632d1727781666be40aa2b0289b265f5d7a1aea233ea2712d0b543a6bc1c6
7
+ data.tar.gz: 0761cac7622de598e87d5b7dde3523a416ce7d725d91ce4edf6a4c1be9aa264db117d4ec37d2a6616c18eef94fd051b01c533af8935eb27afa23f67be1a0e62e
@@ -8,7 +8,7 @@ module Imprint
8
8
  TRACE_CHARS = [('a'..'z'), ('A'..'Z')].map { |i| i.to_a }.flatten
9
9
 
10
10
  def self.set_trace_id(id, rack_env = {})
11
- get_trace_timestamp
11
+ Thread.current[TRACER_TIMESTAMP] = Time.now.utc.strftime("%Y-%m-%dT%H:%M:%S.%6N") + " ##{$$}"
12
12
  Thread.current[TRACER_KEY] = id
13
13
  # setting to the rack_env, gives error tracking support in some systems
14
14
  rack_env[TRACER_KEY] = id
@@ -23,7 +23,7 @@ module Imprint
23
23
  end
24
24
 
25
25
  def self.get_trace_timestamp
26
- Thread.current[TRACER_TIMESTAMP] ||= Time.now.utc.strftime("%Y-%m-%dT%H:%M:%S.%6N") + " ##{$$}"
26
+ Thread.current[TRACER_TIMESTAMP] || Time.now.utc.strftime("%Y-%m-%dT%H:%M:%S.%6N") + " ##{$$}"
27
27
  end
28
28
 
29
29
  def self.insert_trace_id_in_message(message, severity = nil)
@@ -1,3 +1,3 @@
1
1
  module Imprint
2
- VERSION = "1.4.3.pre4"
2
+ VERSION = "1.4.3.pre5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: imprint
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3.pre4
4
+ version: 1.4.3.pre5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Mayer