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 +4 -4
- data/lib/imprint/tracer.rb +2 -2
- data/lib/imprint/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 05980d80e0b7d629da935a72c8e65d703f9581d2
|
4
|
+
data.tar.gz: c0fa1271f5197f9a20c8674306866eaa4426246e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55c6061cc33b5746fb2122fff4573ac89f71faade2ddd8696b94cb8fb13a7db57c7632d1727781666be40aa2b0289b265f5d7a1aea233ea2712d0b543a6bc1c6
|
7
|
+
data.tar.gz: 0761cac7622de598e87d5b7dde3523a416ce7d725d91ce4edf6a4c1be9aa264db117d4ec37d2a6616c18eef94fd051b01c533af8935eb27afa23f67be1a0e62e
|
data/lib/imprint/tracer.rb
CHANGED
@@ -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
|
-
|
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]
|
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)
|
data/lib/imprint/version.rb
CHANGED