aws-xray-sdk 0.10.0 → 0.10.1

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
  SHA256:
3
- metadata.gz: 8e7a6c26d4cd8e8669849e6b298d9b07727f4126641e6c4fa3856745f895af08
4
- data.tar.gz: d0c45a96450d4fab1ad858f0e99f5ab6bf24dd4990750e552df52a6ac4d3d655
3
+ metadata.gz: aa13953d2a4cdedb5933f00937285819a7032dc2fb6aee5be4cd51769d077984
4
+ data.tar.gz: 6022a3d607df51af4a955764cc2ec11d0d5a5cf47695b3d0f280cb7900427826
5
5
  SHA512:
6
- metadata.gz: d0fbd0d535f48af1039cc4a256d280721623cf64de498537d074d7ec44ded18d33bd4f1154cebff344ef562a811dfbab683668a9c3bd93036b4d243cd5df2851
7
- data.tar.gz: b2ef531abf13ac1e72bf0339dd45a55d90a8458018ab5b8993175b2a7c936d0a2fc1cff11abb7373034ee0f55b8b53f2c0a96a1bc523327447ec77994e5e6131
6
+ metadata.gz: 7c6e1e9081ee380a1ed85836f803b9b7c2e14be298df6fbf3258d946380d40798f08f38a56d599879ced211091eec34b9275b5c7ece924299513371fd690a7a4
7
+ data.tar.gz: c173a4b0cd49a589997dd24ef5deb30f0f2f802e15c7712471542851c55c0c2d612dd5ed707ca6751586da34042d7ed55ced061f26f77e3d159e696fc0136f0a
@@ -44,6 +44,7 @@ module XRay
44
44
  content_length: res.content_length
45
45
  }
46
46
  subsegment.merge_http_response response: res_meta
47
+ res
47
48
  rescue Exception => e
48
49
  subsegment.add_exception exception: e
49
50
  raise e
@@ -75,12 +75,10 @@ module XRay
75
75
  req_meta
76
76
  end
77
77
 
78
- def get_ip(ips)
79
- if ips.respond_to?(:length)
80
- ips[ips.length - 1]
81
- else
82
- ips
83
- end
78
+ # get the last ip from header string
79
+ def get_ip(v)
80
+ ips = v.split(',')
81
+ ips[ips.length - 1]
84
82
  end
85
83
  end
86
84
  end
@@ -1,3 +1,3 @@
1
1
  module XRay
2
- VERSION = '0.10.0'
2
+ VERSION = '0.10.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-xray-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-22 00:00:00.000000000 Z
11
+ date: 2018-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj