seanwalbran-rpm_contrib 2.1.6.8 → 2.1.6.9

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ * Version 2.1.6.9
2
+ - In Riak, only try to instrument things if we know they're defined
3
+
1
4
  * Version 2.1.6.8
2
5
  - In resque, only send data from the parent process worker loop, because child processes were
3
6
  always sending data, because NewRelic agent never calls update_last_sent. Just
@@ -26,23 +26,30 @@ DependencyDetection.defer do
26
26
  add_method_tracer :delete_object, 'Database/Riak/delete_object'
27
27
  end
28
28
 
29
- ::Riak::Client::BeefcakeProtobuffsBackend.class_eval &backend_tracers
30
- ::Riak::Client::BeefcakeProtobuffsBackend.class_eval do
31
- add_method_tracer :server_info, 'Database/Riak/server_info'
32
- add_method_tracer :get_client_id, 'Database/Riak/get_client_id'
33
- add_method_tracer :set_client_id, 'Database/Riak/set_client_id'
29
+ if defined?(::Riak::Client::BeefcakeProtobuffsBackend)
30
+ ::Riak::Client::BeefcakeProtobuffsBackend.class_eval &backend_tracers
31
+ ::Riak::Client::BeefcakeProtobuffsBackend.class_eval do
32
+ add_method_tracer :server_info, 'Database/Riak/server_info'
33
+ add_method_tracer :get_client_id, 'Database/Riak/get_client_id'
34
+ add_method_tracer :set_client_id, 'Database/Riak/set_client_id'
35
+ end
34
36
  end
35
- ::Riak::Client::HTTPBackend.class_eval &backend_tracers
36
- ::Riak::Client::HTTPBackend.class_eval do
37
- add_method_tracer :stats, 'Database/Riak/stats'
38
- add_method_tracer :link_walk, 'Database/Riak/link_walk'
39
- add_method_tracer :get_index, 'Database/Riak/get_index'
40
- add_method_tracer :search, 'Database/Riak/search'
41
- add_method_tracer :update_search_index, 'Database/Riak/update_search_index'
37
+
38
+ if defined?(::Riak::HTTPBackend)
39
+ ::Riak::Client::HTTPBackend.class_eval &backend_tracers
40
+ ::Riak::Client::HTTPBackend.class_eval do
41
+ add_method_tracer :stats, 'Database/Riak/stats'
42
+ add_method_tracer :link_walk, 'Database/Riak/link_walk'
43
+ add_method_tracer :get_index, 'Database/Riak/get_index'
44
+ add_method_tracer :search, 'Database/Riak/search'
45
+ add_method_tracer :update_search_index, 'Database/Riak/update_search_index'
46
+ end
42
47
  end
43
48
 
44
- ::Riak::RObject.class_eval do
45
- add_method_tracer :serialize, 'Database/Riak/serialize'
49
+ if defined?(::Riak::RObject)
50
+ ::Riak::RObject.class_eval do
51
+ add_method_tracer :serialize, 'Database/Riak/serialize'
52
+ end
46
53
  end
47
54
  end
48
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: seanwalbran-rpm_contrib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 111
4
+ hash: 109
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
9
  - 6
10
- - 8
11
- version: 2.1.6.8
10
+ - 9
11
+ version: 2.1.6.9
12
12
  platform: ruby
13
13
  authors:
14
14
  - Bill Kayser
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-02-19 00:00:00 Z
20
+ date: 2012-02-21 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: newrelic_rpm
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements: []
141
141
 
142
142
  rubyforge_project:
143
- rubygems_version: 1.8.15
143
+ rubygems_version: 1.8.6
144
144
  signing_key:
145
145
  specification_version: 3
146
146
  summary: Contributed Instrumentation for New Relic RPM