px-service-client 2.0.4 → 2.0.5

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
  SHA1:
3
- metadata.gz: 0c0de73dac7cba576f3d0e10fef5cae82a91c2d9
4
- data.tar.gz: 422cce75ccf3d3232ad8d1594ae99b9d630168a9
3
+ metadata.gz: 5fe327283cd95cc78f53452238c43c45331cc895
4
+ data.tar.gz: 72aa5308880140e008a05f6964afc915f908a3d7
5
5
  SHA512:
6
- metadata.gz: 8b1a9c65ad5721e50911751d6193c1f9f9865db0fddd278ea90421de4c12ec3f73233ec4fddd0f3a243aa9e26d60f5a399e5ae08246cf0af63b73aa11cd2757c
7
- data.tar.gz: fe270fafd278f2db6a52c7a7134fd946df9e41a38fd305bfc46668d0726327f8dd83ad3ba29818a9a0e20d2044aa355c78b8aba412dc47a01093fcf48194a07f
6
+ metadata.gz: c8913fd681f69b0b8fba6106e74b6cf764be7ce870d7e398a87d508fdea5078b911b39894822e2b91718b3fc0cad8376ec82e3ed3797c90a459a9fc35c214be9
7
+ data.tar.gz: f6e2a50ec50658976761e5f503504de1d35ad4ec874ddee26c1b316b4c7c6f639ac71df653ad1f5ed3421d82930824c68f1fe29f023785801ade2938de818a73
@@ -69,19 +69,19 @@ module Px::Service::Client
69
69
 
70
70
  req.on_complete do |response|
71
71
  elapsed = (Time.now - start_time) * 1000
72
- config.statsd_client.histogram("request.duration", elapsed.to_i, tags: stats_tags)
73
- config.statsd_client.increment("response.count", tags: stats_tags + ["httpstatus:#{response.response_code}"])
72
+ config.statsd_client.histogram("backend.request.duration", elapsed.to_i, tags: stats_tags)
73
+ config.statsd_client.increment("backend.response.count", tags: stats_tags + ["httpstatus:#{response.response_code}"])
74
74
  case
75
75
  when response.response_code > 100 && response.response_code < 199
76
- config.statsd_client.increment("response.status_1xx.count", tags: stats_tags)
76
+ config.statsd_client.increment("backend.response.status_1xx.count", tags: stats_tags)
77
77
  when response.response_code > 200 && response.response_code < 299
78
- config.statsd_client.increment("response.status_2xx.count", tags: stats_tags)
78
+ config.statsd_client.increment("backend.response.status_2xx.count", tags: stats_tags)
79
79
  when response.response_code > 300 && response.response_code < 399
80
- config.statsd_client.increment("response.status_3xx.count", tags: stats_tags)
80
+ config.statsd_client.increment("backend.response.status_3xx.count", tags: stats_tags)
81
81
  when response.response_code > 400 && response.response_code < 499
82
- config.statsd_client.increment("response.status_4xx.count", tags: stats_tags)
82
+ config.statsd_client.increment("backend.response.status_4xx.count", tags: stats_tags)
83
83
  when response.response_code > 500
84
- config.statsd_client.increment("response.status_5xx.count", tags: stats_tags)
84
+ config.statsd_client.increment("backend.response.status_5xx.count", tags: stats_tags)
85
85
  end
86
86
  logger.debug "Completed request #{method.to_s.upcase} #{uri}, took #{elapsed.to_i}ms, got status #{response.response_code}" if logger
87
87
  end
@@ -1,7 +1,7 @@
1
1
  module Px
2
2
  module Service
3
3
  module Client
4
- VERSION = "2.0.4"
4
+ VERSION = "2.0.5"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: px-service-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Micacchi