promiscuous-newrelic 0.1.8 → 0.2.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ffd8c3006d3fdc02af7758b1ea0822b57941ba45
4
+ data.tar.gz: 56a18470c1bf4856518bd3943522b1aa7af8720d
5
+ SHA512:
6
+ metadata.gz: ded4ef754c014fcb44cb6329af897e302064d6851840a1444ce1238d3561ee6c05cced5914e8568565e518f06ea6b664bdf1324622972b4afcc8f53f971dc5d2
7
+ data.tar.gz: eecb3e2c2dabc43c0cc018b819a03874ee4d392457e743589ca05a3b58fd046854f8eb65bfe03406a57a670c89fce3d944dde08b7402e99ef68ccf1a995b515b
@@ -8,18 +8,25 @@ DependencyDetection.defer do
8
8
  end
9
9
 
10
10
  executes do
11
- Promiscuous::Subscriber::Worker::Message.class_eval do
11
+ Promiscuous::Subscriber::UnitOfWork.class_eval do
12
12
  include NewRelic::Agent::Instrumentation::ControllerInstrumentation
13
13
 
14
- alias_method :unit_of_work_without_rpm, :unit_of_work
15
- def unit_of_work(type, &block)
14
+ alias_method :execute_operation_without_rpm, :execute_operation
15
+ def execute_operation(operation)
16
16
  # We are not using the subscriber class name, because of polymorphism
17
17
  # We only want the parent class basically
18
- perform_action_with_newrelic_trace(:name => type, :class_name => 'Subscriber', :force => true,
18
+ perform_action_with_newrelic_trace(:name => namespace_for_rpm(operation), :class_name => 'Subscriber', :force => true,
19
19
  :category => "OtherTransaction/Promiscuous") do
20
- unit_of_work_without_rpm(type, &block)
20
+
21
+ execute_operation_without_rpm(operation)
21
22
  end
22
23
  end
24
+
25
+ private
26
+
27
+ def namespace_for_rpm(operation)
28
+ "#{self.app}/#{operation.model.to_s}/#{operation.operation}"
29
+ end
23
30
  end
24
31
 
25
32
  Promiscuous::CLI.class_eval do
@@ -1,5 +1,5 @@
1
1
  module Promiscuous
2
2
  module NewRelic
3
- VERSION = '0.1.8'
3
+ VERSION = '0.2.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promiscuous-newrelic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Nicolas Viennot
@@ -10,54 +9,48 @@ authors:
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2013-02-04 00:00:00.000000000 Z
12
+ date: 2014-04-02 00:00:00.000000000 Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
15
  name: newrelic_rpm
17
16
  requirement: !ruby/object:Gem::Requirement
18
- none: false
19
17
  requirements:
20
- - - ! '>='
18
+ - - '>='
21
19
  - !ruby/object:Gem::Version
22
20
  version: '0'
23
21
  type: :runtime
24
22
  prerelease: false
25
23
  version_requirements: !ruby/object:Gem::Requirement
26
- none: false
27
24
  requirements:
28
- - - ! '>='
25
+ - - '>='
29
26
  - !ruby/object:Gem::Version
30
27
  version: '0'
31
28
  - !ruby/object:Gem::Dependency
32
29
  name: activesupport
33
30
  requirement: !ruby/object:Gem::Requirement
34
- none: false
35
31
  requirements:
36
- - - ! '>='
32
+ - - '>='
37
33
  - !ruby/object:Gem::Version
38
34
  version: '0'
39
35
  type: :runtime
40
36
  prerelease: false
41
37
  version_requirements: !ruby/object:Gem::Requirement
42
- none: false
43
38
  requirements:
44
- - - ! '>='
39
+ - - '>='
45
40
  - !ruby/object:Gem::Version
46
41
  version: '0'
47
42
  - !ruby/object:Gem::Dependency
48
43
  name: promiscuous
49
44
  requirement: !ruby/object:Gem::Requirement
50
- none: false
51
45
  requirements:
52
- - - ! '>='
46
+ - - '>='
53
47
  - !ruby/object:Gem::Version
54
48
  version: 0.50.0
55
49
  type: :runtime
56
50
  prerelease: false
57
51
  version_requirements: !ruby/object:Gem::Requirement
58
- none: false
59
52
  requirements:
60
- - - ! '>='
53
+ - - '>='
61
54
  - !ruby/object:Gem::Version
62
55
  version: 0.50.0
63
56
  description: NewRelic Agent for Promiscuous
@@ -74,26 +67,25 @@ files:
74
67
  - README.md
75
68
  homepage: http://github.com/crowdtap/promiscuous-newrelic
76
69
  licenses: []
70
+ metadata: {}
77
71
  post_install_message:
78
72
  rdoc_options: []
79
73
  require_paths:
80
74
  - lib
81
75
  required_ruby_version: !ruby/object:Gem::Requirement
82
- none: false
83
76
  requirements:
84
- - - ! '>='
77
+ - - '>='
85
78
  - !ruby/object:Gem::Version
86
79
  version: '0'
87
80
  required_rubygems_version: !ruby/object:Gem::Requirement
88
- none: false
89
81
  requirements:
90
- - - ! '>='
82
+ - - '>='
91
83
  - !ruby/object:Gem::Version
92
84
  version: '0'
93
85
  requirements: []
94
86
  rubyforge_project:
95
- rubygems_version: 1.8.23
87
+ rubygems_version: 2.0.14
96
88
  signing_key:
97
- specification_version: 3
89
+ specification_version: 4
98
90
  summary: NewRelic Agent for Promiscuous
99
91
  test_files: []