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: 780979fe0cb5c2d61b74d2356643695dc3380e1d
4
- data.tar.gz: 7778664a870a3b04ea9b0d697445ec2843a4a98a
3
+ metadata.gz: 248f2df9adc1e449f26a74a81b3522927490b3a1
4
+ data.tar.gz: f5d96272b3eb00f34381d2e1f33544e021f8a96f
5
5
  SHA512:
6
- metadata.gz: dd21e0ca6b7140f2096db0062f8793941928bab1f8f23b0c6c6f0e1a5641c2a244a7d624a543fae642d38d1af9f0b4cd6a736d77195d355699ef582135a68c39
7
- data.tar.gz: ce44daf3488a6b7805d179f0176fb0b71a2080836526660a5482665a854c6e0bc214ac7a09e7c7fa4b5426a52dd65a2da253c4e3996c69420a275d91a2de56fe
6
+ metadata.gz: aef0dfd64fdc75715a966ee45c3c8dcad85e67d6f5fc57204d419129ced83b50dec1ca40b452255a22cbc132d5ee9a3c7eae773919bbb02901b2d7e9c386b335
7
+ data.tar.gz: 6ac1bb9c5e418a79ccda0588a6922c4aab50b44575ab6fde230953c784f138c7533b52ef2b47b6ed339c5f087103a5c8cf9b139637309b6e2bdb8aafb490439d
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
8
8
  else
9
9
  spec.name = "freddy"
10
10
  end
11
- spec.version = '1.2.0'
11
+ spec.version = '1.3.0'
12
12
  spec.authors = ["Salemove TechMovers"]
13
13
  spec.email = ["techmovers@salemove.com"]
14
14
  spec.description = %q{Messaging API}
@@ -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: {queue: @pattern},
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: {queue: destination}
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: {queue: destination}
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.2.0
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-03-31 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler