breakers 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/breakers/uptime_middleware.rb +1 -1
- data/lib/breakers/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f3f0fe57f169c943767204654e3a06cc0bfa1b5d94d5526b2b9a17277b7dddca
|
4
|
+
data.tar.gz: 2c2d30d44317fa7ebeb595b6dee476327b93a9d34466de1c25136c48b3201505
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97f7d582d247487f891990c0283b191fb3a34f3340bcb61d36dd3bb999a8cb0831d920dee3f172b250a2e2405ac323a7cadf9df6f041f2ec85a309c185b1554f
|
7
|
+
data.tar.gz: c0a1271baf89a686198968c6153c2e6f3eee5eb044faef715623d389bc6d640290ca633ef55d096562ac20dad79cf827e0520bb167fdaf3b9110c8413afc29e4
|
@@ -54,7 +54,7 @@ module Breakers
|
|
54
54
|
def handle_request(service:, request_env:, current_outage: nil)
|
55
55
|
start_time = Time.now
|
56
56
|
return @app.call(request_env).on_complete do |response_env|
|
57
|
-
response_env[:duration] = Time.now - start_time
|
57
|
+
response_env[:duration] = (Time.now - start_time) * 1000
|
58
58
|
if response_env.status >= 500
|
59
59
|
handle_error(
|
60
60
|
service: service,
|
data/lib/breakers/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breakers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aubrey Holland
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -215,8 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
215
215
|
- !ruby/object:Gem::Version
|
216
216
|
version: '0'
|
217
217
|
requirements: []
|
218
|
-
|
219
|
-
rubygems_version: 2.6.14.4
|
218
|
+
rubygems_version: 3.1.4
|
220
219
|
signing_key:
|
221
220
|
specification_version: 4
|
222
221
|
summary: Handle outages to backend systems with a Faraday middleware
|