newrelic_moped 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +5 -0
- data/lib/newrelic_moped/instrumentation.rb +6 -3
- data/lib/newrelic_moped/version.rb +1 -1
- metadata +13 -12
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
YWUwMDA0NDBlYjkzZjcyODA3OTI4NWZhYjEwMmVmMjUwNzVjMzdhYg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
OWE0NjQ4NTk2M2M3ZDRmZmIzZDYwZjlhYWNjZjkyZDk2YmJiMjM5Mg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YjU2ZDk4MzdhN2MwN2RlOTNmOWNjNjUxZWRjNGI2NDNmYmQ2ZGVhMGNjZDJk
|
10
|
+
ZTQ5ZTBjNzJkNDEyNDc4M2Q3YTM2MzlhOWEyYWNhOWU4MmVlODFkOGMxZTI3
|
11
|
+
NzY3OWJlOGI0YWIyYmZkMTM0NjNlNjc2NWRjNGZkOWM5M2U2M2M=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ODZjNWNkOTdkZGQyYjgwZTRmNTU4ZWM4Y2RjMzVjYmE0NzdiNDRhZWIwMzhj
|
14
|
+
NjFhMWU0MjJiMzJiNjhmZDFjNWU2ODY0ZTBhZWMwZTk1MWU0MzdiMzFlMzU1
|
15
|
+
NTFiNDE0Y2I0MzRiMjNiZTVjMjQzNmJjYTEyYTA0MWQzNGRhNWU=
|
data/README.md
CHANGED
@@ -16,6 +16,11 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install newrelic_moped
|
18
18
|
|
19
|
+
### Configuration
|
20
|
+
|
21
|
+
This gem does not require any specific configuration. Please follow general newrelic_rpm gem configuration:
|
22
|
+
https://github.com/newrelic/rpm/blob/master/newrelic.yml
|
23
|
+
|
19
24
|
## News
|
20
25
|
|
21
26
|
There's no official place for news & updates yet but you can follow @sbartholomew on Twitter for announcements.
|
@@ -30,9 +30,9 @@ module NewRelic
|
|
30
30
|
log_statement = operations.first.log_inspect.encode("UTF-8")
|
31
31
|
|
32
32
|
operation = case operation_name
|
33
|
-
when 'INSERT', 'UPDATE', 'CREATE'
|
34
|
-
when 'QUERY', 'COUNT', 'GET_MORE' then 'find'
|
35
|
-
when 'DELETE'
|
33
|
+
when 'INSERT', 'UPDATE', 'CREATE' then 'save'
|
34
|
+
when 'QUERY', 'COUNT', 'GET_MORE', "AGGREGATE" then 'find'
|
35
|
+
when 'DELETE' then 'destroy'
|
36
36
|
else
|
37
37
|
nil
|
38
38
|
end
|
@@ -75,6 +75,9 @@ module NewRelic
|
|
75
75
|
elsif operation_name == 'COMMAND' && log_statement.include?(":count")
|
76
76
|
operation_name = 'COUNT'
|
77
77
|
collection = log_statement[/:count=>"([^"]+)/,1]
|
78
|
+
elsif operation_name == 'COMMAND' && log_statement.include?(":aggregate")
|
79
|
+
operation_name = 'AGGREGATE'
|
80
|
+
collection = log_statement[/:aggregate=>"([^"]+)/,1]
|
78
81
|
end
|
79
82
|
return operation_name, collection
|
80
83
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: newrelic_moped
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Bartholomew
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: newrelic_rpm
|
@@ -29,28 +29,28 @@ dependencies:
|
|
29
29
|
name: moped
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - '>='
|
32
|
+
- - ! '>='
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - '>='
|
39
|
+
- - ! '>='
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: rake
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- - '>='
|
46
|
+
- - ! '>='
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
type: :development
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - '>='
|
53
|
+
- - ! '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
description: New Relic Instrumentation for Moped & Mongoid 3
|
@@ -60,11 +60,11 @@ executables: []
|
|
60
60
|
extensions: []
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
|
-
- lib/newrelic_moped/instrumentation.rb
|
64
|
-
- lib/newrelic_moped/version.rb
|
65
|
-
- lib/newrelic_moped.rb
|
66
63
|
- LICENSE
|
67
64
|
- README.md
|
65
|
+
- lib/newrelic_moped.rb
|
66
|
+
- lib/newrelic_moped/instrumentation.rb
|
67
|
+
- lib/newrelic_moped/version.rb
|
68
68
|
homepage: https://github.com/stevebartholomew/newrelic_moped
|
69
69
|
licenses:
|
70
70
|
- MIT
|
@@ -75,18 +75,19 @@ require_paths:
|
|
75
75
|
- lib
|
76
76
|
required_ruby_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- - '>='
|
78
|
+
- - ! '>='
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- - '>='
|
83
|
+
- - ! '>='
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: '0'
|
86
86
|
requirements: []
|
87
87
|
rubyforge_project:
|
88
|
-
rubygems_version: 2.
|
88
|
+
rubygems_version: 2.2.2
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: New Relic Instrumentation for Moped & Mongoid 3
|
92
92
|
test_files: []
|
93
|
+
has_rdoc:
|