aws-xray 0.21.0 → 0.21.1

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
  SHA1:
3
- metadata.gz: d50f25b7b9235c56f0a00d34fd2604fd035784af
4
- data.tar.gz: 643838af98ab3e99e36fd10a8dc8806ed80e5b08
3
+ metadata.gz: a70cc56a3f1ef62528f19cbc02163bfdcdbddf60
4
+ data.tar.gz: e19299db3d72e8ab7079d5bbfbab55df9cad0e9f
5
5
  SHA512:
6
- metadata.gz: fda8e93c3225e75efe5a7b53e272309aa72496f85a86a7cca6950031d2e1fdc819b5e185da867f6144a89812a82ab00ecbc6ef27bf308e2b7ee51bd4810d4d67
7
- data.tar.gz: 256ff91bdb4f7d654e6a5f4f93cf5b789ec23fa15aeac642bafd5b21a9d6ef5815b43c4ad6848c853eae354df7214771ab9b9cd3a7cd7b1d7b6847cbd0a71175
6
+ metadata.gz: 45add7d52f5739bdf7d1005effffc1d715a66a7fdffe48211ea689ae3e289aad3c4603f57c5b6b153d6afd286640c0a5a6c35ab6061b6404002766d3c6ed4ab1
7
+ data.tar.gz: '08335f52809b4f289571c18f00556a49fdc9d95a30da7107b568de140f7765eb7b7d6b0a1415100efb36f05bfe5283e6ba6bacb7112d30fc2d33d6a5945c6e07'
data/README.md CHANGED
@@ -120,6 +120,15 @@ response = Aws::Xray.overwrite(name: 'sns') do
120
120
  end
121
121
  ```
122
122
 
123
+ #### rsolr hook
124
+ When you want to name solr requests, use this hook by require `aws/xray/hooks/rsolr`. The typical usecase is you use local haproxy to proxy to solr instances and you want to distinguish these requests from other reqeusts using local haproxy.
125
+
126
+ If you want to give a specific name, configure it:
127
+
128
+ ```ruby
129
+ Aws::Xray.config.solr_hook_name = 'solr-development'
130
+ ```
131
+
123
132
  ### Multi threaded environment
124
133
  Tracing context is thread local. To pass current tracing context, copy current tracing context:
125
134
 
@@ -51,10 +51,10 @@ module Aws
51
51
  set_http_response(status, length)
52
52
  type = remote ? 'http_request_error' : 'http_response_error'
53
53
  case status.to_i
54
- when 499
55
- cause = Cause.new(stack: caller, message: 'Got 499', type: type)
54
+ when 429
55
+ cause = Cause.new(stack: caller, message: 'Got 429', type: type)
56
56
  set_error(error: true, remote: remote, throttle: true, cause: cause)
57
- when 400..498
57
+ when 400..499
58
58
  cause = Cause.new(stack: caller, message: 'Got 4xx', type: type)
59
59
  set_error(error: true, remote: remote, cause: cause)
60
60
  when 500..599
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Xray
3
- VERSION = '0.21.0'
3
+ VERSION = '0.21.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-xray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.21.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono