aws-xray 0.34.2 → 0.34.3

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: 9a0eb78b31bfa15fab44d57564ad3ab0fbfa1886
4
- data.tar.gz: 541eabdbc8011e287b0295c2bf90087e264c3c56
3
+ metadata.gz: 532e479bf5d85136ef07b1797919d8b95f91c69a
4
+ data.tar.gz: ad77b1e33115dfa9cad71098a396d36521dd11c7
5
5
  SHA512:
6
- metadata.gz: 4910daaedfb129b8ffeb1b72cfdcfa80d35d6f8305ab3fd7c5aedfc7f305a2033f39e1edf67ea9ced08c653bf9d86af50e38ff36395b8228f2918b422cd89a43
7
- data.tar.gz: a3c498980ac073fd60fb48b45a4e4dff663f8020aa55a707e2fb282e17093b3098ce349816a10a6d654408c4d4ee3dbf0d42baf34be84f26527062b2dcaf12a4
6
+ metadata.gz: 6a0e8a502c42fabb4b8462ab3168e4f35299e8b31a40aadde7e880a7d7e4e5ae0ff244777705f5b22d6bd9a832d3cf92b2e6e960c6f160c70b13fa35b43e443b
7
+ data.tar.gz: d2e66a08d7c6211730b8138d57010dffa3d6f09fd12673afd70cd77475190153081d836dab7f6431ffe87bdb059edbb720dfaab4e938756da2b8070c4e3bc5ad
data/README.md CHANGED
@@ -71,8 +71,8 @@ docker run --link xray:xray --env AWS_XRAY_LOCATION=xray:2000 my-application
71
71
 
72
72
  ### Sampling
73
73
  Sampling rate should be a float within 0 to 1. Both 0 and 1 are acceptable.
74
- e.g. 0 means never sampled, 1 means always sampled, 0.3 means 30% of requests (or traces in not Rack app) will be sampled.
75
- The default sampling rate is undefined so you should set your own sampling rate on production systems.
74
+ e.g. 0 means never sampled, 1 means always sampled, 0.3 means 30% of requests (or traces in non-Rack app) will be sampled.
75
+ The default sampling rate is undefined so you should set your own sampling rate on production systems.
76
76
 
77
77
  Set sampling rate with `AWS_XRAY_SAMPLING_RATE` env var.
78
78
 
@@ -118,9 +118,9 @@ If you want to track these errors, for example with Sentry, you can configure yo
118
118
  Aws::Xray.config.segment_sending_error_handler = MyCustomErrorHandler.new
119
119
  ```
120
120
 
121
- The error handler must be callable object and receive 2 arguments and 2 keyword arguments. See `Aws::Xray::DefaultErrorHandler` more detail.
121
+ The error handler must be callable object and receive 2 arguments and 2 keyword arguments. See `Aws::Xray::DefaultErrorHandler` for more details.
122
122
 
123
- Optionaly, aws-xray offers an error handler which integrats with Sentry. To use it:
123
+ Optionally, aws-xray offers an error handler which integrates with Sentry. To use it:
124
124
 
125
125
  ```ruby
126
126
  Aws::Xray.config.segment_sending_error_handler = Aws::Xray::ErrorHandlerWithSentry.new
@@ -13,7 +13,7 @@ module Aws
13
13
  def call(error, payload, host:, port:)
14
14
  @io.puts(<<-EOS)
15
15
  Failed to send a segment to #{host}:#{port}:
16
- Segnemt:
16
+ Segment:
17
17
  #{payload}
18
18
  Error: #{error}
19
19
  #{error.backtrace.join("\n")}
@@ -42,7 +42,7 @@ module Aws
42
42
  if str.nil?
43
43
  nil
44
44
  else
45
- str.to_s.encode(__ENCODING__, invalid: :replace, undef: :replace)
45
+ str.to_s.encode(__ENCODING__, invalid: :replace, undef: :replace, replace: '')
46
46
  end
47
47
  end
48
48
 
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Xray
3
- VERSION = '0.34.2'
3
+ VERSION = '0.34.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-xray
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.34.2
4
+ version: 0.34.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Taiki Ono
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-08 00:00:00.000000000 Z
11
+ date: 2017-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack