imprint 1.4.3.pre3 → 1.4.3.pre4
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 +1 -1
- data/lib/imprint/version.rb +1 -1
- data/test/unit/tracer_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19847e0b5694b127c72eba667442421d45760829
|
4
|
+
data.tar.gz: 2a05b5832173caa597612f5cb7ac8603a4839123
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 165f2a447d068fe2a920cd0bb3d44272b524b65ffd786ab44d0b621321478bfc14116b8dfb65780acad38f998f8432a91b0f12abb50fab08e58ecf65d5c732c2
|
7
|
+
data.tar.gz: 83d9dde9d3f4cb3a0b3b0924edb66faed2805af89bc57f5486319aa65ef11ad4c841270eeef34aa0e92bce071c03254c9ce90e19ec55f3964691e116ee28b1f9
|
data/lib/imprint/tracer.rb
CHANGED
@@ -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.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)
|
data/lib/imprint/version.rb
CHANGED
data/test/unit/tracer_test.rb
CHANGED
@@ -11,7 +11,7 @@ class TracerTest < Minitest::Test
|
|
11
11
|
should "set trace timestamp" do
|
12
12
|
fake_trace = "tracer"
|
13
13
|
Timecop.freeze do
|
14
|
-
test_time = Time.now
|
14
|
+
test_time = Time.now.utc
|
15
15
|
Imprint::Tracer.set_trace_id(fake_trace, fake_rack_env)
|
16
16
|
# timecop has a bug with millisec time on osx
|
17
17
|
# this makes the check ignore millisec
|
@@ -29,7 +29,7 @@ class TracerTest < Minitest::Test
|
|
29
29
|
|
30
30
|
should "get trace timestamp defaults" do
|
31
31
|
Timecop.freeze do
|
32
|
-
test_time = Time.now
|
32
|
+
test_time = Time.now.utc
|
33
33
|
# timecop has a bug with millisec time on osx
|
34
34
|
# this makes the check ignore millisec
|
35
35
|
assert !!Imprint::Tracer.get_trace_timestamp.to_s.match(/#{test_time.strftime("%Y-%m-%dT%H:%M:%S")}/)
|
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.
|
4
|
+
version: 1.4.3.pre4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Mayer
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
141
141
|
version: 1.3.1
|
142
142
|
requirements: []
|
143
143
|
rubyforge_project:
|
144
|
-
rubygems_version: 2.
|
144
|
+
rubygems_version: 2.2.3
|
145
145
|
signing_key:
|
146
146
|
specification_version: 4
|
147
147
|
summary: A gem to help improve logging. Focused on request tracing and cross app tracing.
|