meter 1.2.3 → 1.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/meter/rails/controller_instrumentation.rb +1 -15
- data/lib/meter/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f0b82ac07feee817225dab4a288ff40446aa64038071e29efcbdc734f86cff81
|
4
|
+
data.tar.gz: d9e81bced6927d1409c2e4d7f51fcf67cc02f1d671d677eb78b0ac15a73831c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b8c13019fa99a531fa69fc4b6746615b576ae63315818d1991a05f08a9510cb8a7cf052343db0f172b2018660e7cf342ccfb46f52cdc9066e5c4c7b65bab630
|
7
|
+
data.tar.gz: d909d3821435c264388153881118968d08083972bc5fca50381332f801f06a42383299362f8ea144b8e1a65a97cd2f021d28e67dfbc3d3b1ebb63f9b56e16a27
|
@@ -23,19 +23,5 @@ ActiveSupport::Notifications.subscribe /process_action.action_controller/ do |*a
|
|
23
23
|
duration: total_duration
|
24
24
|
}
|
25
25
|
|
26
|
-
|
27
|
-
db_runtime: :db_duration,
|
28
|
-
view_runtime: :view_duration,
|
29
|
-
elasticsearch_runtime: :elasticsearch_duration
|
30
|
-
}
|
31
|
-
|
32
|
-
instrumented_layers.each do |layer, tag_value|
|
33
|
-
next unless payload.has_key? layer
|
34
|
-
duration = payload[layer].to_i
|
35
|
-
meter_data[tag_value] = duration
|
36
|
-
Meter.timing("request.layer_duration", duration, tags: meter_tags.merge(layer: tag_value))
|
37
|
-
end
|
38
|
-
|
39
|
-
Meter.timing "request.total_duration", total_duration, tags: meter_tags
|
40
|
-
Meter.track "requests", tags: meter_tags, data: meter_data
|
26
|
+
Meter.log 'requests', tags: meter_tags, data: meter_data
|
41
27
|
end
|
data/lib/meter/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bukowskis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: useragent
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
requirements: []
|
146
146
|
rubyforge_project:
|
147
|
-
rubygems_version: 2.
|
147
|
+
rubygems_version: 2.7.6
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: A generic abstraction layer for fire and forgetting measurements via UDP.
|