newrelic_mongodb 0.1.1 → 0.1.2
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 +4 -4
- data/lib/newrelic_mongodb/instrumentation.rb +1 -1
- data/lib/newrelic_mongodb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33d680534d7b90113dc46a09ce216e9bc131f5cd
|
|
4
|
+
data.tar.gz: ffd1b49b24e12f22576a49c043c2ce4418158aa4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88c7ea61dd21320b63a5956aa6b8544c4154ae3e43998b6900b2c7473bbefb176d0309b02b7a277fc62f5eb3edc156105dc4efa665b95460bc128df68331e0bb
|
|
7
|
+
data.tar.gz: 1681fb8085b98922c42886ed805897c2a111b77fbb3ac64d15a5499fb132ff7bca666726d778cefaedd5e9b4aa00919ca42fff2952d4353ceee2af7366af2a50
|
|
@@ -38,7 +38,7 @@ module NewRelic
|
|
|
38
38
|
def determine_operation_and_collection(message)
|
|
39
39
|
operation_name = message.payload[:command_name]
|
|
40
40
|
|
|
41
|
-
collection_name = if (namespace_name = message.namespace.split('.').last) == '$cmd'
|
|
41
|
+
collection_name = if message.respond_to?(:namespace) && (namespace_name = message.namespace.split('.').last) == '$cmd'
|
|
42
42
|
message.selector[operation_name]
|
|
43
43
|
else
|
|
44
44
|
namespace_name
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: newrelic_mongodb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- William Li
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-08-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: newrelic_rpm
|