px-service-client 2.0.4 → 2.0.5
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 +4 -4
- data/lib/px/service/client/base.rb +7 -7
- data/lib/px/service/client/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe327283cd95cc78f53452238c43c45331cc895
|
4
|
+
data.tar.gz: 72aa5308880140e008a05f6964afc915f908a3d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|