vitals 0.5.0 → 0.6.0
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/Gemfile.lock +4 -2
- data/README.md +1 -1
- data/lib/vitals/integrations/notifications/action_controller.rb +1 -1
- data/lib/vitals/integrations/notifications/grape.rb +1 -1
- data/lib/vitals/integrations/rack/requests.rb +1 -1
- data/lib/vitals/version.rb +1 -1
- data/vitals.gemspec +1 -2
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e9e5ba3c92282f21ad9d99202b745fac43ba7ef4
|
4
|
+
data.tar.gz: d33d618d83901d8bf6cc19f708b865acc977269a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 231707f0c9836419a53606ac64fce4f56f8454835e4b21451d0bb2389676fd5671d6d703ce5fbbcf2be31db94062925f8bf596355a5139508b6d09df715f003f
|
7
|
+
data.tar.gz: 20b6e2a3a88fa5b2d27b9bd7d808ad014b18a576c2a8a34b69e679848f0a88ed9d47bf2faeb3345835fd7398dc718dd032c678f020a9f3fdcd33d8e520b5ec55
|
data/Gemfile.lock
CHANGED
@@ -19,6 +19,9 @@ GEM
|
|
19
19
|
ice_nine (~> 0.11.0)
|
20
20
|
thread_safe (~> 0.3, >= 0.3.1)
|
21
21
|
benchmark-ips (2.5.0)
|
22
|
+
benchmark-ipsa (0.2.0)
|
23
|
+
benchmark-ips (~> 2.5.0)
|
24
|
+
memory_profiler (~> 0.9.6)
|
22
25
|
builder (3.2.2)
|
23
26
|
byebug (8.2.2)
|
24
27
|
coderay (1.1.1)
|
@@ -140,14 +143,13 @@ PLATFORMS
|
|
140
143
|
|
141
144
|
DEPENDENCIES
|
142
145
|
activesupport (~> 4.2.6)
|
143
|
-
benchmark-
|
146
|
+
benchmark-ipsa (~> 0.2.0)
|
144
147
|
bundler (~> 1.11)
|
145
148
|
byebug (~> 8.2.2)
|
146
149
|
coveralls (~> 0.8.13)
|
147
150
|
grape (~> 0.15.0)
|
148
151
|
guard-minitest (~> 2.4.4)
|
149
152
|
guard-rubocop (~> 1.2.0)
|
150
|
-
memory_profiler (~> 0.9.6)
|
151
153
|
minitest (~> 5.0)
|
152
154
|
rack-test (~> 0.6.3)
|
153
155
|
rake (~> 10.0)
|
data/README.md
CHANGED
@@ -51,7 +51,7 @@ Vitals::Integrations::Notifications::ActiveJob.subscribe!
|
|
51
51
|
# Grape
|
52
52
|
#
|
53
53
|
require 'vitals/integrations/notifications/grape'
|
54
|
-
Vitals::Integrations::Notifications::
|
54
|
+
Vitals::Integrations::Notifications::Grape.subscribe!
|
55
55
|
```
|
56
56
|
|
57
57
|
You can shortcircuit the notifications configuration by using `subscribe!` right after configuring:
|
@@ -15,7 +15,7 @@ module Vitals::Integrations::Notifications
|
|
15
15
|
ctrl = payload[:controller].sub(/Controller$/, '').downcase
|
16
16
|
# format = payload[:format]
|
17
17
|
|
18
|
-
m = "controllers.#{ctrl}_#{action}
|
18
|
+
m = "controllers.#{ctrl}_#{action}.#{method}.#{status}"
|
19
19
|
Vitals.timing("#{m}.all", duration(started, finished))
|
20
20
|
Vitals.timing("#{m}.db", payload[:db_runtime]) if payload[:db_runtime]
|
21
21
|
Vitals.timing("#{m}.view", payload[:view_runtime]) if payload[:view_runtime]
|
@@ -16,7 +16,7 @@ module Vitals::Integrations::Notifications
|
|
16
16
|
path = Vitals::Utils.grape_path(route)
|
17
17
|
|
18
18
|
# TODO move 'grape' to configuration opts in subscribe!(opts)
|
19
|
-
m = "grape.#{path}
|
19
|
+
m = "grape.#{path}.#{method}.#{endpoint.status}.all"
|
20
20
|
Vitals.timing(m, duration(started, finished))
|
21
21
|
end
|
22
22
|
|
@@ -25,7 +25,7 @@ module Vitals::Integrations::Rack
|
|
25
25
|
else
|
26
26
|
Requests.rack_path(env)
|
27
27
|
end
|
28
|
-
m = "requests.#{@prefix}#{path}
|
28
|
+
m = "requests.#{@prefix}#{path}.#{env[REQUEST_METHOD].downcase}.#{status}"
|
29
29
|
|
30
30
|
# TODO add option to customize 'requests' through options
|
31
31
|
Vitals.timing(m, Vitals::Utils.sec_to_ms(t))
|
data/lib/vitals/version.rb
CHANGED
data/vitals.gemspec
CHANGED
@@ -28,8 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_development_dependency "minitest", "~> 5.0"
|
29
29
|
spec.add_development_dependency "rack-test", "~> 0.6.3"
|
30
30
|
spec.add_development_dependency "rr", "~> 1.1.2"
|
31
|
-
spec.add_development_dependency "benchmark-
|
32
|
-
spec.add_development_dependency "memory_profiler", "~> 0.9.6"
|
31
|
+
spec.add_development_dependency "benchmark-ipsa", "~> 0.2.0"
|
33
32
|
|
34
33
|
spec.add_development_dependency "coveralls", "~> 0.8.13"
|
35
34
|
# integrations
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vitals
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dotan Nahum
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03
|
11
|
+
date: 2016-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: statsd-ruby
|
@@ -123,33 +123,19 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 1.1.2
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name: benchmark-
|
126
|
+
name: benchmark-ipsa
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: 2.
|
131
|
+
version: 0.2.0
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: 2.
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: memory_profiler
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 0.9.6
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 0.9.6
|
138
|
+
version: 0.2.0
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: coveralls
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|