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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efaa90e27b52691e9d7f9cca3a3c2cc73a3d64c3ce215b434fc9c08f15a080d5
4
- data.tar.gz: 33f3feca670e74cb73c2000db678798e711a9176a76e42d11b3401a9242292ec
3
+ metadata.gz: ece92dc89e88351ad7d00edb721902dffd2c635009d190791ffcfd2de0162150
4
+ data.tar.gz: 966f410537709525c168e86425b4c922d20bad6db5f475fd1719302be5036e77
5
5
  SHA512:
6
- metadata.gz: 9d7ebb5d97cfef20af5da2a13ef486de62343efed00549fd8c2da35bfa0d7c98aa5403c999ce5df3701b1a5a2e727eb724667c03951b7790daab2ef7a7914b8e
7
- data.tar.gz: 1bb91c1c8041cafd0c8c9dd92a142c76ecfcd2f0037a91f399688d54b0837dc6194dfc776cba08e7a8affd6b3f275740a16b5ecfa9fb430b76d050fcd31b93e3
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('request_duration_seconds', duration, tags: tags)
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('exceptions_total', tags: { exception: e.class.name })
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.1
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-14 00:00:00.000000000 Z
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: '0'
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: '0'
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: request_duration_seconds (histogram), requests_total
29
- (counter), and exceptions_total (counter).'
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: []