promiscuous-newrelic 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ DependencyDetection.defer do
8
8
  end
9
9
 
10
10
  executes do
11
- Promiscuous::Common::Worker.class_eval do
11
+ Promiscuous::Common::Worker.module_eval do
12
12
  include NewRelic::Agent::Instrumentation::ControllerInstrumentation
13
13
 
14
14
  alias_method :unit_of_work_without_rpm, :unit_of_work
@@ -16,10 +16,13 @@ DependencyDetection.defer do
16
16
  # XXX All the publishers are using the same category
17
17
  # (Just because it's hard to make sense of what it really means
18
18
  # to split things up. Maybe we should not even report the publisher worker.
19
- worker_type = type == 'publisher' ? "Publishers" : "Subscribers"
19
+ worker_type = type == 'publisher' ? 'Publisher' : 'Subscriber'
20
+ name = type == 'publisher' ? 'all' : type
20
21
 
21
- perform_action_with_newrelic_trace(:class_name => type,
22
- :category => "Promiscuous/#{worker_type}") do
22
+ # We are not using the subscriber class name, because of polymorphism
23
+ # We only want the parent class basically
24
+ perform_action_with_newrelic_trace(:name => name, :class_name => worker_type,
25
+ :category => "OtherTransaction/Promiscuous") do
23
26
  unit_of_work_without_rpm(type, &block)
24
27
  end
25
28
  end
@@ -1,5 +1,5 @@
1
1
  module Promiscuous
2
2
  module NewRelic
3
- VERSION = '0.1.1'
3
+ VERSION = '0.1.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promiscuous-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -68,8 +68,8 @@ executables: []
68
68
  extensions: []
69
69
  extra_rdoc_files: []
70
70
  files:
71
- - lib/promiscuous/new_relic/instrumentation.rb
72
71
  - lib/promiscuous/new_relic/version.rb
72
+ - lib/promiscuous/new_relic/instrumentation.rb
73
73
  - lib/promiscuous-newrelic.rb
74
74
  - README.md
75
75
  homepage: http://github.com/crowdtap/promiscuous-newrelic