statsd-rack-instrument 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/statsd_rack_instrument.rb +6 -2
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ece92dc89e88351ad7d00edb721902dffd2c635009d190791ffcfd2de0162150
|
4
|
+
data.tar.gz: 966f410537709525c168e86425b4c922d20bad6db5f475fd1719302be5036e77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d0b97ac757b5d87311e9d15f833fdfd226d48cedc0bf0ed85009d2f9966183f1cbb7f6a9708f073fa1dbd64d016993958a525c6840620fd205491e51f7f4191
|
7
|
+
data.tar.gz: 8c7d75af62703ab65bfb0c5d4140601ae75aab10671dfd38445b684130d86b90d41b167ca6d9b8982c9247542c46d9526995836f9db18521177af94c8dd7a406
|
@@ -23,11 +23,15 @@ class StatsDRackInstrument
|
|
23
23
|
method: env['REQUEST_METHOD'].downcase,
|
24
24
|
path: build_path(env)
|
25
25
|
}
|
26
|
-
StatsD.histogram(
|
26
|
+
StatsD.histogram(
|
27
|
+
'rack_server_request_duration_seconds', duration, tags: tags
|
28
|
+
)
|
27
29
|
|
28
30
|
response
|
29
31
|
rescue => e
|
30
|
-
StatsD.increment(
|
32
|
+
StatsD.increment(
|
33
|
+
'rack_server_exceptions_total', tags: { exception: e.class.name }
|
34
|
+
)
|
31
35
|
raise
|
32
36
|
end
|
33
37
|
|
metadata
CHANGED
@@ -1,32 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: statsd-rack-instrument
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- michal-kazmierczak
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: statsd-instrument
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.1'
|
27
27
|
description: 'The statsd-rack-instrument gem enables a quick implementation of StatsD
|
28
|
-
metrics. It adds metrics such as:
|
29
|
-
|
28
|
+
metrics. It adds metrics such as: rack_server_request_duration_seconds (histogram)
|
29
|
+
and rack_server_exceptions_total (counter).'
|
30
30
|
email:
|
31
31
|
executables: []
|
32
32
|
extensions: []
|