ygrene_istio_tracing 1.0.7 → 1.0.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a4118602a7595462cf06f9516a200f2debce3d74d3693d03e63108023609701e
4
- data.tar.gz: 3e82d11546d1d0d1c5d8e53d3f86a64a0d1bb30b1c2934f94372c6ddd8c33182
3
+ metadata.gz: 1dc59a2284a9c3e42826f7cca0af820409d3a5df0964e22785d7f71ee612cc7f
4
+ data.tar.gz: 7f9d1f3d9ba04b0ac427e6149847e4a425b811964659d067ef17f31c57cedabf
5
5
  SHA512:
6
- metadata.gz: ac4a5410823c8fdd166619aadb70b103c2110058047dc448987cc0fa5cfcae511c17d78d73fa5d760e9582e6df44ae34f0a06260164d138f8c7641551ada7f99
7
- data.tar.gz: 261de2bcf1484d821c0875353dc03ab6acc0395fab009c415d7bd78e2c10a395014eebfdfccafd06985be927815c696ff9067a83950471f0aab5c0726e1b41db
6
+ metadata.gz: 416a886229a56cdf0983fe00de26f7a0bda7a75921dfe76f032abcf29647df2da3ac3b1e0756e07847fe635519854e87580237fb189a3ae595bf8f99dd05fb84
7
+ data.tar.gz: 5767a50b2265d976b827a8c89193568e659d7b773cd8a76ad900eb47dde799158aaa824f34996a9e941d0b49e072678a80bcc3a955a3d0aa01df62c4a8359beb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ygrene_istio_tracing (1.0.2)
4
+ ygrene_istio_tracing (1.0.8)
5
5
  typhoeus (~> 1.3.1)
6
6
 
7
7
  GEM
@@ -3,13 +3,6 @@
3
3
  module YgreneIstioTracing
4
4
  module Tracing
5
5
  PROPAGATION_HEADERS = %w[
6
- x-request-id
7
- x-b3-traceid
8
- x-b3-spanid
9
- x-b3-parentspanid
10
- x-b3-sampled
11
- x-b3-flags
12
- x-ot-span-context
13
6
  X-REQUEST-ID
14
7
  X-B3-TRACEID
15
8
  X-B3-SPANID
@@ -19,8 +19,8 @@ module YgreneIstioTracing
19
19
  def request(req, *args, &block)
20
20
  return super unless Context.exists_current?
21
21
 
22
- headers = YgreneIstioTracing::Tracing::Context.current.headers
23
- YgreneIstioTracing::Tracing::PROPAGATION_HEADERS.each do |h|
22
+ headers = ::YgreneIstioTracing::Tracing::Context.current.headers
23
+ ::YgreneIstioTracing::Tracing::PROPAGATION_HEADERS.each do |h|
24
24
  req[h] = headers[h] if headers[h].present?
25
25
  end
26
26
  super
@@ -16,7 +16,10 @@ module YgreneIstioTracing
16
16
  end
17
17
 
18
18
  def extract_http_headers(env)
19
- env.select { |k, _v| PROPAGATION_HEADERS.include?(k.downcase) }
19
+ env.select do |k, _v|
20
+ header = k.upcase.gsub(/^HTTP_/, '')
21
+ PROPAGATION_HEADERS.include?(header)
22
+ end
20
23
  end
21
24
  end
22
25
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YgreneIstioTracing
4
- VERSION = '1.0.7'
4
+ VERSION = '1.0.8'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ygrene_istio_tracing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Adams
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-20 00:00:00.000000000 Z
11
+ date: 2018-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus