aws-xray 0.37.1 → 0.37.2
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 +5 -5
- data/.travis.yml +2 -2
- data/README.md +1 -1
- data/lib/aws/xray/rails.rb +7 -1
- data/lib/aws/xray/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d36fd97ace078801e2a508c9015101cd4af6e8bf57e9560d3a08428fc264a03d
|
4
|
+
data.tar.gz: b2dfcd39e4b0354d81a964390bfe46f3ec86235662c4999d306847963dc9dbde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3643b6f45ab12c7d856000cc2304ce318628ac88706d0fb3db4dcb1027797800a5bea61e5b59d23a5f8f4d90195a31d04ac1104cceb76862ee10f35cc483eeae
|
7
|
+
data.tar.gz: 6639268cc73905177b287ca208968b32434301c9b8eef4185e59b17a92bcb6ca28ed646b972967628ae6db0110ca929da424e527b4cc9052c5473d03d2c1fc10
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -127,7 +127,7 @@ Aws::Xray.config.segment_sending_error_handler = Aws::Xray::ErrorHandlerWithSent
|
|
127
127
|
```
|
128
128
|
|
129
129
|
### Recording caller of HTTP requests
|
130
|
-
Set `Aws::Xray.config.record_caller_of_http_requests = true` if you want investigate the caller of specific HTTP requests.
|
130
|
+
Set `Aws::Xray.config.record_caller_of_http_requests = true` if you want to investigate the caller of specific HTTP requests.
|
131
131
|
It records caller of net/http and Faraday middleware.
|
132
132
|
|
133
133
|
## Usage
|
data/lib/aws/xray/rails.rb
CHANGED
@@ -5,7 +5,13 @@ module Aws
|
|
5
5
|
class Railtie < ::Rails::Railtie
|
6
6
|
initializer 'aws-xray.set_name' do |app|
|
7
7
|
unless Aws::Xray.config.name
|
8
|
-
|
8
|
+
klass = app.class
|
9
|
+
parent_name = if klass.respond_to?(:module_parent_name)
|
10
|
+
klass.module_parent_name
|
11
|
+
else
|
12
|
+
klass.parent_name
|
13
|
+
end
|
14
|
+
app_name = parent_name.underscore.gsub(/(\/|_)/, '-')
|
9
15
|
|
10
16
|
if Rails.env.production?
|
11
17
|
Aws::Xray.config.name = app_name
|
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.37.
|
4
|
+
version: 0.37.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:
|
11
|
+
date: 2019-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
@@ -311,8 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
311
311
|
- !ruby/object:Gem::Version
|
312
312
|
version: '0'
|
313
313
|
requirements: []
|
314
|
-
|
315
|
-
rubygems_version: 2.5.2.1
|
314
|
+
rubygems_version: 3.0.3
|
316
315
|
signing_key:
|
317
316
|
specification_version: 4
|
318
317
|
summary: The unofficial X-Ray Tracing SDK for Ruby.
|