freddy 1.2.0 → 1.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 248f2df9adc1e449f26a74a81b3522927490b3a1
|
4
|
+
data.tar.gz: f5d96272b3eb00f34381d2e1f33544e021f8a96f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aef0dfd64fdc75715a966ee45c3c8dcad85e67d6f5fc57204d419129ced83b50dec1ca40b452255a22cbc132d5ee9a3c7eae773919bbb02901b2d7e9c386b335
|
7
|
+
data.tar.gz: 6ac1bb9c5e418a79ccda0588a6922c4aab50b44575ab6fde230953c784f138c7533b52ef2b47b6ed339c5f087103a5c8cf9b139637309b6e2bdb8aafb490439d
|
data/freddy.gemspec
CHANGED
@@ -34,7 +34,13 @@ class Freddy
|
|
34
34
|
def process_message(delivery, &block)
|
35
35
|
@consume_thread_pool.process do
|
36
36
|
begin
|
37
|
-
Freddy.trace = delivery.build_trace("freddy:respond:#{@destination}"
|
37
|
+
Freddy.trace = delivery.build_trace("freddy:respond:#{@destination}",
|
38
|
+
tags: {
|
39
|
+
'peer.address': "#{@destination}:#{delivery.payload[:type]}",
|
40
|
+
'component': 'freddy',
|
41
|
+
'span.kind': 'server' # RPC
|
42
|
+
}
|
43
|
+
)
|
38
44
|
Freddy.trace.log(
|
39
45
|
event: 'Received message through respond_to',
|
40
46
|
queue: @destination,
|
@@ -43,7 +43,11 @@ class Freddy
|
|
43
43
|
@consume_thread_pool.process do
|
44
44
|
begin
|
45
45
|
Freddy.trace = delivery.build_trace("freddy:observe:#{@pattern}",
|
46
|
-
tags: {
|
46
|
+
tags: {
|
47
|
+
'message_bus.destination': @pattern,
|
48
|
+
'component': 'freddy',
|
49
|
+
'span.kind': 'consumer' # Message Bus
|
50
|
+
},
|
47
51
|
force_follows_from: true
|
48
52
|
)
|
49
53
|
Freddy.trace.log(
|
@@ -12,7 +12,11 @@ class Freddy
|
|
12
12
|
def produce(destination, payload, properties)
|
13
13
|
span = OpenTracing.start_span("freddy:notify:#{destination}",
|
14
14
|
child_of: Freddy.trace,
|
15
|
-
tags: {
|
15
|
+
tags: {
|
16
|
+
'message_bus.destination': destination,
|
17
|
+
'component': 'freddy',
|
18
|
+
'span.kind': 'producer' # Message Bus
|
19
|
+
}
|
16
20
|
)
|
17
21
|
span.log event: 'Sending message', payload: payload
|
18
22
|
|
@@ -25,7 +25,10 @@ class Freddy
|
|
25
25
|
def produce(destination, payload, timeout_in_seconds:, delete_on_timeout:, **properties)
|
26
26
|
span = OpenTracing.start_span("freddy:request:#{destination}",
|
27
27
|
child_of: Freddy.trace,
|
28
|
-
tags: {
|
28
|
+
tags: {
|
29
|
+
'component': 'freddy',
|
30
|
+
'span.kind': 'client' # RPC
|
31
|
+
}
|
29
32
|
)
|
30
33
|
|
31
34
|
correlation_id = SecureRandom.uuid
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: freddy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Salemove TechMovers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|