mongo_active_instrumentation 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 624e165c2fd215e886c26e4e1433fa49205f65eb
|
4
|
+
data.tar.gz: 2d653b15d96434f74edd55080abb5b69a1a346ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c607904109f4c6edbbbdcc8eda23122b62a8d6084db6bcc725b8715e67abde5f6ebcf7bfb64ee497f4ffd46278926270dc3e05d7c249d401f5f7e475154b5b01
|
7
|
+
data.tar.gz: fa42fe743316b9c2ffd1b59e11ead02ccbfc8dfa036805b4ee82b44ed370ef7bfda19e3b41c0a5da45fd79b9058ec8eb78408dbda765c30a49b56b162eb74f5b
|
@@ -20,7 +20,7 @@ module MongoActiveInstrumentation
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def cleanup_view_runtime
|
23
|
-
if logger && logger.info?
|
23
|
+
if logger && logger.info?
|
24
24
|
mongo_rt_before_render = MongoActiveInstrumentation::LogSubscriber.reset_runtime
|
25
25
|
self.mongo_runtime = (mongo_runtime || 0) + mongo_rt_before_render
|
26
26
|
runtime = super
|
@@ -34,9 +34,7 @@ module MongoActiveInstrumentation
|
|
34
34
|
|
35
35
|
def append_info_to_payload(payload)
|
36
36
|
super
|
37
|
-
|
38
|
-
payload[:mongo_runtime] = (mongo_runtime || 0) + MongoActiveInstrumentation::LogSubscriber.reset_runtime
|
39
|
-
end
|
37
|
+
payload[:mongo_runtime] = (mongo_runtime || 0) + MongoActiveInstrumentation::LogSubscriber.reset_runtime
|
40
38
|
end
|
41
39
|
|
42
40
|
module ClassMethods # :nodoc:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongo_active_instrumentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgars Beigarts
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mongo
|