tiny_bus 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tiny_bus.rb +2 -2
- 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: b6166f18cf5222d5886b6276f55e5e6eba9f74050f69665a93b1f641a0ae9177
|
4
|
+
data.tar.gz: 96b2ebda14a8820f268d19c1f7e517937fae4c424faf8cb31bcf20a6b87110e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b95b706827023d4cbd94030a3f5a382d46543422e6ad47f9bfe2196972c0c106b22082a5654b096de708ccdba8d7d48be949c11b59a1a8ec89162eeec2d6e471
|
7
|
+
data.tar.gz: b7be435794e5fc4aca6f4baa0ab3b7d35ceaebdd573fe1e60bb7ff5757370917a96c3b4b0ea476796ba2f3e46326e2b524e06d64705f890f4f533c761253c5f4
|
data/lib/tiny_bus.rb
CHANGED
@@ -75,8 +75,8 @@ class TinyBus
|
|
75
75
|
@trace_key = "#{annotation_prefix}trace"
|
76
76
|
|
77
77
|
@annotator = TinyPipe.new([
|
78
|
-
->(m){ m[@time_key]
|
79
|
-
->(m){ m[@msg_uuid_key]
|
78
|
+
->(m){ m[@time_key] ||= (Time.now.to_f * 1000).to_i; m },
|
79
|
+
->(m){ m[@msg_uuid_key] ||= SecureRandom.uuid; m },
|
80
80
|
->(m){ m[@trace_key] ||= SecureRandom.uuid; m }
|
81
81
|
])
|
82
82
|
|