macmillan-utils 1.0.16 → 1.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/macmillan/utils/rails/statsd_instrumentation.rb +4 -4
- 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: 951184f25f8950d5ed27caf80fc988ff05c51e7a
|
4
|
+
data.tar.gz: 9e38e87df83ef07ce39bf3b4e4c9bf4db174e984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37cb4306ae641b75bae621999d0138d9a1a03456b54a688a3df6d6829536ee93a02a2f93942328e77bd3616ad2c27174d0cba47cd83bef0a21c692b75dfa1697
|
7
|
+
data.tar.gz: a3504c05c8e322e1738d4b5ecc2b23fc0b2d47a79ef19f8509c92e469cdc40d5f55c7adef8ce9e53f021917bee774128192db7a49fc259dc9c33f67e9d5d96de
|
@@ -54,11 +54,11 @@ ActiveSupport::Notifications.subscribe /process_action.action_controller/ do |*a
|
|
54
54
|
$statsd.timing('response_time', event.duration)
|
55
55
|
|
56
56
|
$statsd.timing("#{key}.response_time", event.duration)
|
57
|
-
$statsd.timing("#{key}.db_time", event.payload[:db_runtime])
|
58
|
-
$statsd.timing("#{key}.view_time", event.payload[:view_runtime])
|
57
|
+
$statsd.timing("#{key}.db_time", event.payload[:db_runtime]) if event.payload[:db_runtime]
|
58
|
+
$statsd.timing("#{key}.view_time", event.payload[:view_runtime]) if event.payload[:view_runtime]
|
59
59
|
|
60
60
|
$statsd.timing("#{key}.#{hostname}.response_time", event.duration)
|
61
|
-
$statsd.timing("#{key}.#{hostname}.db_time", event.payload[:db_runtime])
|
62
|
-
$statsd.timing("#{key}.#{hostname}.view_time", event.payload[:view_runtime])
|
61
|
+
$statsd.timing("#{key}.#{hostname}.db_time", event.payload[:db_runtime]) if event.payload[:db_runtime]
|
62
|
+
$statsd.timing("#{key}.#{hostname}.view_time", event.payload[:view_runtime]) if event.payload[:view_runtime]
|
63
63
|
end
|
64
64
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: macmillan-utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Macmillan Science and Education (New Publsihing Platforms)
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|