promiscuous-newrelic 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,40 +8,27 @@ DependencyDetection.defer do
8
8
  end
9
9
 
10
10
  executes do
11
- Promiscuous::Subscriber::Worker.module_eval do
11
+ Promiscuous::Subscriber::Worker::Message.class_eval do
12
12
  include NewRelic::Agent::Instrumentation::ControllerInstrumentation
13
13
 
14
14
  alias_method :unit_of_work_without_rpm, :unit_of_work
15
15
  def unit_of_work(type, &block)
16
- # XXX All the publishers are using the same category
17
- # (Just because it's hard to make sense of what it really means
18
- # to split things up. Maybe we should not even report the publisher worker.
19
- worker_type = type == 'publisher' ? 'Publisher' : 'Subscriber'
20
- name = type == 'publisher' ? 'all' : type
21
-
22
16
  # We are not using the subscriber class name, because of polymorphism
23
17
  # We only want the parent class basically
24
- perform_action_with_newrelic_trace(:name => name, :class_name => worker_type, :force => true,
18
+ perform_action_with_newrelic_trace(:name => type, :class_name => 'Subscriber', :force => true,
25
19
  :category => "OtherTransaction/Promiscuous") do
26
20
  unit_of_work_without_rpm(type, &block)
27
21
  end
28
22
  end
29
23
  end
30
24
 
31
- Promiscuous::Worker.module_eval do
32
- class << self
33
- alias_method :replicate_without_rpm, :replicate
34
- alias_method :kill_without_rpm, :kill
35
-
36
- def replicate(options={})
37
- NewRelic::Agent.manual_start
38
- replicate_without_rpm(options)
39
- end
40
-
41
- def kill
42
- kill_without_rpm
43
- NewRelic::Agent.shutdown
44
- end
25
+ Promiscuous::CLI.class_eval do
26
+ alias_method :run_without_rpm, :run
27
+ def run
28
+ NewRelic::Agent.manual_start
29
+ run_without_rpm
30
+ ensure
31
+ NewRelic::Agent.shutdown
45
32
  end
46
33
  end
47
34
 
@@ -1,5 +1,5 @@
1
1
  module Promiscuous
2
2
  module NewRelic
3
- VERSION = '0.1.6'
3
+ VERSION = '0.1.7'
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.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-02 00:00:00.000000000 Z
13
+ date: 2013-02-04 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: newrelic_rpm
@@ -51,7 +51,7 @@ dependencies:
51
51
  requirements:
52
52
  - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.30.0
54
+ version: 0.50.0
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  requirements:
60
60
  - - ! '>='
61
61
  - !ruby/object:Gem::Version
62
- version: 0.30.0
62
+ version: 0.50.0
63
63
  description: NewRelic Agent for Promiscuous
64
64
  email:
65
65
  - nicolas@viennot.biz
@@ -92,9 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 1.8.24
95
+ rubygems_version: 1.8.23
96
96
  signing_key:
97
97
  specification_version: 3
98
98
  summary: NewRelic Agent for Promiscuous
99
99
  test_files: []
100
- has_rdoc: false