aws-xray 0.33.0 → 0.34.0

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: 86518cf5bf93669438808fdc243b85a0f008c6fb
4
- data.tar.gz: d3f4dc26f179fcdac79c1e869dd3184bd205839e
3
+ metadata.gz: 7267a7fa4f024ff030f9d92c3fd1e140960c8f1c
4
+ data.tar.gz: 64347fabe77bb404f398cc66ba93547d8b68ec19
5
5
  SHA512:
6
- metadata.gz: 4e7b87167a284726f295ea77cd6f91f56c1729e4699708fac291e223c0f4b02c8727b557a631bd54fb78747b38bdce5a5036e5b8a833e0c57d69b82ecc50aea1
7
- data.tar.gz: 3016ab09e4e9e956b3f7ad02411c945d95ae75449f043e4967cdcfdde9ebafff841b2b6a430c46b151514f93c5e79fab0c9408eb80afa92dc21b8bee395581b4
6
+ metadata.gz: 6ff9ccd3096e8eaeec4df15e1e83fdd4b5dd14054c73aab0dd34d110427816960164d643e48e54b8b54bbe7a55580ac5d282b283d17b0a7620c46a067db75312
7
+ data.tar.gz: a45c55edc853cfffc53362b0c8666a2c3691c5dc24e077ec9f1746af54be097d60fcc909bfc269f338111a22dfdfd3a1e5b44c869da9afb9d0819e3caa9b6c1b
@@ -1,6 +1,9 @@
1
1
  # CHANGELOG
2
2
  Only breaking or notable changes.
3
3
 
4
+ ## v0.34.0
5
+ - Change default sampling rate from 0.1% to undefined. Please set proper sampling rate in your production system.
6
+
4
7
  ## v0.31.0
5
8
  - Rename tracing methods while keeping old methods:
6
9
  - `#base_trace` -> `#start_segment`
data/README.md CHANGED
@@ -157,13 +157,9 @@ docker run --link xray:xray --env AWS_XRAY_LOCATION=xray:2000 my-application
157
157
  ### Sampling
158
158
  Sampling rate should be a float within 0 to 1. Both 0 and 1 are acceptable.
159
159
  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.
160
- The default sampling rate is `0.001`, which means 0.1% of requests will be sampled.
160
+ The default sampling rate is undefined so you should set your own sampling rate on production system.
161
161
 
162
- Set sampling rate with `AWS_XRAY_SAMPLING_RATE` env var or:
163
-
164
- ```ruby
165
- Aws::Xray.config.sampling_rate = 0.1
166
- ```
162
+ Set sampling rate with `AWS_XRAY_SAMPLING_RATE` env var.
167
163
 
168
164
  ### Excluded paths
169
165
  To avoid tracing health checking requests, use "excluded paths" configuration.
@@ -39,7 +39,7 @@ module Aws
39
39
  @default_metadata = DEFAULT_METADATA
40
40
  @segment_sending_error_handler = DefaultErrorHandler.new($stderr)
41
41
  @worker = Aws::Xray::Worker::Configuration.new
42
- @sampling_rate = Float(ENV['AWS_XRAY_SAMPLING_RATE'] || 0.001)
42
+ @sampling_rate = Float(ENV['AWS_XRAY_SAMPLING_RATE'] || 1.0)
43
43
  @solr_hook_name = 'solr'
44
44
  @record_caller_of_http_requests = false
45
45
  end
@@ -92,7 +92,7 @@ module Aws
92
92
  conf
93
93
  end
94
94
 
95
- # Default is 0.1%.
95
+ # Default is undefined.
96
96
  # @param [Float] sampling_rate
97
97
  # @return [Float]
98
98
  attr_accessor :sampling_rate
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Xray
3
- VERSION = '0.33.0'
3
+ VERSION = '0.34.0'
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.33.0
4
+ version: 0.34.0
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-06-30 00:00:00.000000000 Z
11
+ date: 2017-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack