rpm_contrib 2.1.11 → 2.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.
- checksums.yaml +7 -0
- data/CHANGELOG +4 -0
- data/README.md +33 -0
- data/lib/rpm_contrib.rb +4 -5
- data/lib/rpm_contrib/instrumentation/aws.rb +1 -1
- data/lib/rpm_contrib/instrumentation/curb.rb +2 -1
- data/lib/rpm_contrib/instrumentation/mongo.rb +1 -0
- data/lib/rpm_contrib/instrumentation/mongoid.rb +1 -1
- metadata +40 -72
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c89ae55085151aeaeab9dd46ffc94cc91ea43274
|
4
|
+
data.tar.gz: edfd7921ae4b256e4470db825609d9f0d8d87346
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 45eacf31f79ddbd00adbe58e9b2580bd880d0451eaae81445d07cc7bc2d2f5dc64fbe0c22125ff249fbb078fe714079bfebff8b966ca8ac6fbd72e4315b60a0b
|
7
|
+
data.tar.gz: 2a642b389af45f6878c1d3a18da9e480032d2898b8ef345de657a5aee7f01376483b3100cacb61430437f2bbce0c7a5364f821a1d22c762996f3306af78291e8
|
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
* Version 2.2.0
|
2
|
+
- Final version of rpm_contrib, with post-install deprecation message
|
3
|
+
- Use Addressable::URI from Curb instrumentation (Amir Yalon)
|
4
|
+
|
1
5
|
* Version 2.1.11
|
2
6
|
- Removed Resque instrumentation in favor of instrumentation in main agent https://github.com/newrelic/rpm (version 3.4.0)
|
3
7
|
|
data/README.md
CHANGED
@@ -17,6 +17,11 @@ If you're interested in maintaining instrumentation for a specific
|
|
17
17
|
library/framework, please let us know. We'd love to work with you and promote
|
18
18
|
your project. -The New Relic Ruby Agent Team
|
19
19
|
|
20
|
+
## extends_newrelic_rpm
|
21
|
+
We've started tracking gems that extend the New Relic Ruby agent via a git
|
22
|
+
repository at http://github.com/newrelic/extends_newrelic_rpm. Check that out for
|
23
|
+
a longer list of projects if you don't find what you need listed directly here.
|
24
|
+
|
20
25
|
## New Relic Ruby Agent Plugins (Seperate Projects)
|
21
26
|
|
22
27
|
Here is a list of instrumentation projects for various Ruby libraries:
|
@@ -28,6 +33,16 @@ Please use Evan Phoenix's `newrelic-redis` gem instead.
|
|
28
33
|
|
29
34
|
https://github.com/evanphx/newrelic-redis
|
30
35
|
|
36
|
+
#### Mongoid 3 / Moped
|
37
|
+
|
38
|
+
Instrumentation for Mongoid 3 / Moped:
|
39
|
+
|
40
|
+
https://github.com/stevebartholomew/newrelic_moped
|
41
|
+
|
42
|
+
#### Mongoid 2 / Mongo:
|
43
|
+
|
44
|
+
https://github.com/raphaelcm/newrelic_mongo
|
45
|
+
|
31
46
|
#### Faraday
|
32
47
|
|
33
48
|
Instrumentation for the HTTP client library Faraday is available at:
|
@@ -46,6 +61,24 @@ Workling instrumenatation can be found at:
|
|
46
61
|
|
47
62
|
https://github.com/aurorafeint/newrelic-workling
|
48
63
|
|
64
|
+
#### Sequel
|
65
|
+
|
66
|
+
`newrelic_rpm` version 3.6.2 supports Sequel directly.
|
67
|
+
Older agent versions can use the Sequel gem found at:
|
68
|
+
|
69
|
+
https://github.com/realestate-com-au/newrelic-sequel
|
70
|
+
|
71
|
+
#### Excon
|
72
|
+
|
73
|
+
Instrumentation for the Excon gem can be found at:
|
74
|
+
|
75
|
+
https://github.com/helle/newrelic-excon
|
76
|
+
|
77
|
+
#### Typhoeus
|
78
|
+
|
79
|
+
Instrumentation for the Typhoeus gem can be found at:
|
80
|
+
|
81
|
+
https://github.com/sportngin/newrelic-typhoeus
|
49
82
|
|
50
83
|
## Getting Started
|
51
84
|
|
data/lib/rpm_contrib.rb
CHANGED
@@ -14,7 +14,7 @@ require 'rpm_contrib/samplers'
|
|
14
14
|
|
15
15
|
if defined? Rails
|
16
16
|
# Rails 3.x+
|
17
|
-
if Rails.respond_to?(:version) && Rails.version =~ /^3/
|
17
|
+
if Rails.respond_to?(:version) && Rails.version.to_s =~ /^(3|4)/
|
18
18
|
module NewRelic
|
19
19
|
class Railtie < Rails::Railtie
|
20
20
|
initializer("rpm_contrib.start_plugin"){ NewRelic::Control.instance.init_plugin }
|
@@ -27,10 +27,9 @@ if defined? Rails
|
|
27
27
|
raise "The rpm_contrib gem supports Rails 2.2+ only."
|
28
28
|
end
|
29
29
|
else
|
30
|
-
# If not running Rails, it is important that you load the contrib gem as late
|
31
|
-
# as possible so the agent initializes after everything else. Either that
|
30
|
+
# If not running Rails, it is important that you load the contrib gem as late
|
31
|
+
# as possible so the agent initializes after everything else. Either that
|
32
32
|
# or make the following call yourself at the end of your startup sequence
|
33
33
|
# (it is idempotent).
|
34
|
-
NewRelic::Control.instance.init_plugin
|
34
|
+
NewRelic::Control.instance.init_plugin
|
35
35
|
end
|
36
|
-
|
@@ -11,8 +11,9 @@ DependencyDetection.defer do
|
|
11
11
|
|
12
12
|
executes do
|
13
13
|
::Curl::Easy.class_eval do
|
14
|
+
URI_CLASS = defined?(::Addressable) ? ::Addressable::URI : URI
|
14
15
|
def host
|
15
|
-
|
16
|
+
self.url.respond_to?(:host) ? self.url.host : URI_CLASS.parse(self.url).host
|
16
17
|
end
|
17
18
|
|
18
19
|
# TODO: http, http_delete, http_get, http_post, http_head, http_put
|
@@ -15,6 +15,7 @@ DependencyDetection.defer do
|
|
15
15
|
include NewRelic::Agent::MethodTracer
|
16
16
|
|
17
17
|
def instrument_with_newrelic_trace(name, payload = {}, &blk)
|
18
|
+
payload = {} if payload.nil?
|
18
19
|
collection = payload[:collection]
|
19
20
|
if collection == '$cmd'
|
20
21
|
f = payload[:selector].first
|
metadata
CHANGED
@@ -1,69 +1,41 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: rpm_contrib
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 2
|
8
|
-
- 1
|
9
|
-
- 11
|
10
|
-
version: 2.1.11
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.2.0
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Bill Kayser
|
14
8
|
- Jon Guymon
|
9
|
+
- Jason Clark
|
15
10
|
autorequire:
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2012-05-25 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
22
16
|
name: newrelic_rpm
|
23
|
-
|
24
|
-
|
25
|
-
none: false
|
26
|
-
requirements:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
27
19
|
- - ">="
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
hash: 1
|
30
|
-
segments:
|
31
|
-
- 3
|
32
|
-
- 1
|
33
|
-
- 1
|
20
|
+
- !ruby/object:Gem::Version
|
34
21
|
version: 3.1.1
|
35
22
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: newrelic_rpm
|
39
23
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
43
26
|
- - ">="
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
hash: 1
|
46
|
-
segments:
|
47
|
-
- 3
|
48
|
-
- 1
|
49
|
-
- 1
|
27
|
+
- !ruby/object:Gem::Version
|
50
28
|
version: 3.1.1
|
51
|
-
type: :runtime
|
52
|
-
version_requirements: *id002
|
53
29
|
description: |
|
54
|
-
|
55
|
-
the New Relic Ruby monitoring gem newrelic_rpm.
|
56
|
-
|
30
|
+
Deprecated community contributed instrumentation for various frameworks based on New Relic's Ruby monitoring gem newrelic_rpm.
|
57
31
|
email: support@newrelic.com
|
58
32
|
executables: []
|
59
|
-
|
60
33
|
extensions: []
|
61
|
-
|
62
|
-
extra_rdoc_files:
|
34
|
+
extra_rdoc_files:
|
63
35
|
- CHANGELOG
|
64
36
|
- LICENSE
|
65
37
|
- README.md
|
66
|
-
files:
|
38
|
+
files:
|
67
39
|
- CHANGELOG
|
68
40
|
- Gemfile
|
69
41
|
- LICENSE
|
@@ -100,41 +72,37 @@ files:
|
|
100
72
|
- test/test_picky.rb
|
101
73
|
homepage: http://github.com/newrelic/rpm_contrib
|
102
74
|
licenses: []
|
103
|
-
|
104
|
-
post_install_message:
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
75
|
+
metadata: {}
|
76
|
+
post_install_message: |
|
77
|
+
*********************************************************************
|
78
|
+
WARNING: rpm_contrib is deprecated. New Relic recommends moving to
|
79
|
+
gems listed at https://github.com/newrelic/extends_newrelic_rpm for
|
80
|
+
further instrumentation. :thanks:
|
81
|
+
*********************************************************************
|
82
|
+
rdoc_options:
|
83
|
+
- "--line-numbers"
|
84
|
+
- "--inline-source"
|
85
|
+
- "--title"
|
109
86
|
- Contributed Instrumentation for New Relic RPM
|
110
|
-
- -m
|
87
|
+
- "-m"
|
111
88
|
- README.md
|
112
|
-
require_paths:
|
89
|
+
require_paths:
|
113
90
|
- lib
|
114
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
115
|
-
|
116
|
-
requirements:
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
117
93
|
- - ">="
|
118
|
-
- !ruby/object:Gem::Version
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
version: "0"
|
123
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
124
|
-
none: false
|
125
|
-
requirements:
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '0'
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
126
98
|
- - ">="
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
|
129
|
-
segments:
|
130
|
-
- 0
|
131
|
-
version: "0"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '0'
|
132
101
|
requirements: []
|
133
|
-
|
134
102
|
rubyforge_project:
|
135
|
-
rubygems_version:
|
103
|
+
rubygems_version: 2.2.2
|
136
104
|
signing_key:
|
137
105
|
specification_version: 3
|
138
106
|
summary: Contributed Instrumentation for New Relic RPM
|
139
107
|
test_files: []
|
140
|
-
|
108
|
+
has_rdoc:
|