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 +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +2 -6
- data/lib/aws/xray/configuration.rb +2 -2
- data/lib/aws/xray/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7267a7fa4f024ff030f9d92c3fd1e140960c8f1c
|
4
|
+
data.tar.gz: 64347fabe77bb404f398cc66ba93547d8b68ec19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ff9ccd3096e8eaeec4df15e1e83fdd4b5dd14054c73aab0dd34d110427816960164d643e48e54b8b54bbe7a55580ac5d282b283d17b0a7620c46a067db75312
|
7
|
+
data.tar.gz: a45c55edc853cfffc53362b0c8666a2c3691c5dc24e077ec9f1746af54be097d60fcc909bfc269f338111a22dfdfd3a1e5b44c869da9afb9d0819e3caa9b6c1b
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
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
|
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
|
95
|
+
# Default is undefined.
|
96
96
|
# @param [Float] sampling_rate
|
97
97
|
# @return [Float]
|
98
98
|
attr_accessor :sampling_rate
|
data/lib/aws/xray/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|