aws-xray 0.34.1 → 0.34.2

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: 6211707f740b26f01a68faba9498a0d7424eff34
4
- data.tar.gz: 8d52e3d25f2f259c6afab89ee63ea89bbdae8b58
3
+ metadata.gz: 9a0eb78b31bfa15fab44d57564ad3ab0fbfa1886
4
+ data.tar.gz: 541eabdbc8011e287b0295c2bf90087e264c3c56
5
5
  SHA512:
6
- metadata.gz: cff14025420e63287722a2066b72dbdf6858b6583d87643e4e833f4b4b0f32dedbb139937ae12bdd6534c667870e0e9ba02fc95a2e6a4993602211252d509718
7
- data.tar.gz: 79230a1f4630fea2344a03391bd0cc5f55bfb5fb73b9cc5ae0088cb42fa5f18ee7b3ebe94138a4f6fbf9d89a7d5951f343fc451ae9833b979c17cbfa2ab79a73
6
+ metadata.gz: 4910daaedfb129b8ffeb1b72cfdcfa80d35d6f8305ab3fd7c5aedfc7f305a2033f39e1edf67ea9ced08c653bf9d86af50e38ff36395b8228f2918b422cd89a43
7
+ data.tar.gz: a3c498980ac073fd60fb48b45a4e4dff663f8020aa55a707e2fb282e17093b3098ce349816a10a6d654408c4d4ee3dbf0d42baf34be84f26527062b2dcaf12a4
data/README.md CHANGED
@@ -13,9 +13,9 @@ If you want to know what is distributed tracing, what is problems behind, etc..,
13
13
  ## Features
14
14
  aws-xray has full feautres to build and send tracing data to AWS X-Ray.
15
15
 
16
- - Propagatin support in both single and multi thread environment.
16
+ - Propagation support in both single and multi thread environments.
17
17
  - Instrumentation for major libraries.
18
- - Recording HTTP request/response and errors.
18
+ - Recording HTTP requests/responses and errors.
19
19
  - Annotation and metadata support.
20
20
  - Sampling.
21
21
 
@@ -28,7 +28,7 @@ aws-xray has full feautres to build and send tracing data to AWS X-Ray.
28
28
 
29
29
  ## Getting started
30
30
  ### Rails app
31
- Just require `aws/xray/rails`. It uses your application name by default. e.g. `Legacy::MyBlog` -> `legacy-my-blog`.
31
+ Just require `aws/xray/rails`. It uses your application name as a service name by default. e.g. `Legacy::MyBlog` -> `legacy-my-blog`.
32
32
 
33
33
  ```ruby
34
34
  # Gemfile
@@ -38,7 +38,7 @@ gem 'aws-xray', require: ['aws/xray/rails', 'aws/xray/hooks/net_http']
38
38
  Requiring `aws/xray/rails` inserts Rack middleware to the middleware stack and the middleware automatically starts tracing context. Another requiring `aws/xray/hooks/net_http` inserts a hook to net/http and it records out-going HTTP requests/responses automatically.
39
39
 
40
40
  Then setup [X-Ray daemon](http://docs.aws.amazon.com/xray/latest/devguide/xray-daemon.html) in your runtime environment.
41
- Once the daemon is ready, run your application with some environment variable required by aws-xray gem.
41
+ Once the daemon is ready, run your application with some environment variables required by aws-xray gem.
42
42
 
43
43
  - `AWS_XRAY_LOCATION`: Point to X-Ray daemon's bind address and port. e.g. `localhost:2000`.
44
44
  - `AWS_XRAY_SAMPLING_RATE`: Set sampling rate. If you are just checking behavior, you can disable sampling by setting `1`.
@@ -72,7 +72,7 @@ docker run --link xray:xray --env AWS_XRAY_LOCATION=xray:2000 my-application
72
72
  ### Sampling
73
73
  Sampling rate should be a float within 0 to 1. Both 0 and 1 are acceptable.
74
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 system.
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
 
@@ -26,7 +26,11 @@ Error: #{error}
26
26
  ERROR_LEVEL = 'warning'.freeze
27
27
 
28
28
  def call(error, payload, host:, port:)
29
- ::Raven.capture_exception(error, level: ERROR_LEVEL, extra: { 'payload' => payload })
29
+ ::Raven.capture_exception(
30
+ error,
31
+ level: ERROR_LEVEL,
32
+ extra: { 'payload' => payload, 'payload_raw' => payload.unpack('H*').first }
33
+ )
30
34
  end
31
35
  end
32
36
  end
@@ -27,7 +27,7 @@ module Aws
27
27
  req[TRACE_HEADER] = propagate_trace.to_header_value
28
28
  sub.set_http_request(request_record)
29
29
 
30
- # Don't record twice if down-steam caller calls Net::HTTP#request again.
30
+ # Don't record twice if down-stream caller calls Net::HTTP#request again.
31
31
  res = Context.current.disable_trace(:net_http) { request_without_aws_xray(req, *args, &block) }
32
32
 
33
33
  sub.set_http_response_with_error(res.code.to_i, res['Content-Length'], remote: true)
@@ -1,5 +1,5 @@
1
1
  module Aws
2
2
  module Xray
3
- VERSION = '0.34.1'
3
+ VERSION = '0.34.2'
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.1
4
+ version: 0.34.2
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-07-10 00:00:00.000000000 Z
11
+ date: 2017-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack