network_resiliency 0.6.7 → 0.6.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8cb7405c6ce983981b9eccdc8aa9c2b3b51020fc2ad8f525b5908621a7d5ceec
4
- data.tar.gz: 6baa6fa692dc479082ffaa1805c7dd96e2815ae5bec9ccb6453452d8410c1db3
3
+ metadata.gz: b907866b5327e9488dca8b828bbf3b14c84a257c6a62c6381197455f11fc337b
4
+ data.tar.gz: 8aa6d3fbe7a1a0bae41711b18f02659363b620af749bc9cc778fd244398c9e36
5
5
  SHA512:
6
- metadata.gz: 8761514b5a55a983381df650817777c54679e13760c2af4e300b37dedb4ed820aa17b194f85a76b423b0ba0bd0ce645c724e1c10ae45ababaed621403d93ad14
7
- data.tar.gz: a76fe8fc08364042547ff7a78ec13c598829e28e3140cfd462836c396419e29265aefa357874004c8627ff8310fadcc8f571dd0b9bb796508697a191353ebf50
6
+ metadata.gz: 98c21b67a95c4ac785df751ae874e53f5116908462e5d17944831202e414ddc3644601d7e9c3ca6b00703a900490e56d575cff7a896a2606ef3167521ebfde88
7
+ data.tar.gz: 7f9d19f1546bfb251243cd142899af1eb74d561e9004e25b91b28e072d7f23f68646c0c2ba5b145ab933c28eafc762303e56811169ce4dd8f2822f60a235bef5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### v0.6.8 (2023-12-04)
2
+ - slim metrics
3
+
1
4
  ### v0.6.7 (2023-12-04)
2
5
  - auto patch
3
6
  - adapter stubbing
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- network_resiliency (0.6.7)
4
+ network_resiliency (0.6.8)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,3 +1,3 @@
1
1
  module NetworkResiliency
2
- VERSION = "0.6.7"
2
+ VERSION = "0.6.8"
3
3
  end
@@ -181,16 +181,6 @@ module NetworkResiliency
181
181
  }.compact,
182
182
  )
183
183
 
184
- NetworkResiliency.statsd&.distribution(
185
- "network_resiliency.#{action}.magnitude",
186
- duration.order_of_magnitude(ceil: true),
187
- tags: {
188
- adapter: adapter,
189
- destination: destination,
190
- error: error,
191
- }.compact,
192
- )
193
-
194
184
  NetworkResiliency.statsd&.gauge(
195
185
  "network_resiliency.#{action}.timeout",
196
186
  timeout,
@@ -208,18 +198,8 @@ module NetworkResiliency
208
198
  adapter: adapter,
209
199
  destination: destination,
210
200
  },
211
- ) if timeout && timeout > 0
201
+ ) if timeout && timeout > duration
212
202
  else
213
- # track successful retries
214
- NetworkResiliency.statsd&.increment(
215
- "network_resiliency.#{action}.resilient",
216
- tags: {
217
- adapter: adapter,
218
- destination: destination,
219
- attempts: attempts,
220
- },
221
- ) if attempts > 1
222
-
223
203
  # record stats
224
204
  key = [ adapter, action, destination ].join(":")
225
205
  stats = StatsEngine.add(key, duration)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: network_resiliency
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.7
4
+ version: 0.6.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper