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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: aa7c2dcd6179f6f90438097a4b5e4c0ffd6ee900
4
- data.tar.gz: d18165ffd183652093b2e2cab2c9267780f92a0f
2
+ SHA256:
3
+ metadata.gz: f0b82ac07feee817225dab4a288ff40446aa64038071e29efcbdc734f86cff81
4
+ data.tar.gz: d9e81bced6927d1409c2e4d7f51fcf67cc02f1d671d677eb78b0ac15a73831c6
5
5
  SHA512:
6
- metadata.gz: 375aa514949f39ec0628622c347e1aae8c6c47dbfd0c466d8db73dd033af10b7995f1f8f91dc9a6601657be5aa12fd24f8f82cccb04e78dad4c4a1dc82e06ba6
7
- data.tar.gz: 380808d540765cb5dc19653a49577b0297e3c036ea02487059367152bc82ad8655523a9587f46d6a977cd98c6de87d49b91312da499b8934d22a85f628fcd5d0
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
- instrumented_layers = {
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
@@ -2,7 +2,7 @@ module Meter
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 1
4
4
  MINOR = 2
5
- TINY = 3
5
+ TINY = 4
6
6
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
7
7
  end
8
8
  end
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.3
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-08-31 00:00:00.000000000 Z
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.5.1
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.