harness-active_publisher 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2c8406c4436e248e55c89fba264833993ab57b58
4
- data.tar.gz: 820a74e56d4bf6788947babc1d9981657c103bc5
2
+ SHA256:
3
+ metadata.gz: e01c033d4b8d402d197d4ad2e2caa14303da76e37e842bd5a77a59fcbea3c456
4
+ data.tar.gz: baab7264989476feba75164d00b3204e66991055912ae5087a1dd1693d527bb9
5
5
  SHA512:
6
- metadata.gz: 2421be092365302abbb5a8115552b91301b2b0a8a8244d290ec1ccfbafe8c160755791a30fffdad057be0131f989225f1c9c2d1c19c8822c567175a65b1d09e7
7
- data.tar.gz: ff6d94490814361e6c25698d4444d3e71c1b582e7de8cb173f7ef13571a3448f758e365f0bc7bc68437369c0ccce1dcb287d5c9b0bbe541e2cbab33dc04b1400
6
+ metadata.gz: '079d94ea764590c1218a2bf15023a7bbb61186f08e13cfb949b0a765ca7bd012094d6f0fd7b680656890117102801eb96307d8b9d150d7d3fbed24bc1a9ef768'
7
+ data.tar.gz: 972430c574a27136d730cd6f3ca39cddb925356e3de1dd9c30e6c9e4a7cbdfaf0d43385337243a4eb80ce9297f65898021a3074da9d993fe3b081aeabdd7a04a
@@ -21,8 +21,10 @@ module Harness
21
21
 
22
22
  ::ActiveSupport::Notifications.subscribe "message_published.active_publisher" do |*args|
23
23
  event = ::ActiveSupport::Notifications::Event.new(*args)
24
+ route = event.payload.fetch(:route, "")
25
+ route = ".#{route.gsub('.', '-')}" unless route.empty?
24
26
  message_count = event.payload.fetch(:message_count, 1)
25
- ::Harness.count PUBLISHED_METRIC, message_count
27
+ ::Harness.count PUBLISHED_METRIC + route, message_count
26
28
  ::Harness.timing LATENCY_METRIC, event.duration
27
29
  end
28
30
 
@@ -1,5 +1,5 @@
1
1
  module Harness
2
2
  module ActivePublisher
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: harness-active_publisher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Ries
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-12-09 00:00:00.000000000 Z
11
+ date: 2020-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  requirements: []
123
123
  rubyforge_project:
124
- rubygems_version: 2.6.13
124
+ rubygems_version: 2.7.6
125
125
  signing_key:
126
126
  specification_version: 4
127
127
  summary: a gem to collect instrumation stats from active_publisher and forward them