zipkin-tracer 0.14.0 → 0.14.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTE5MGZkODVmZTg4Y2QzZGE1MDZhZjQyNzIyNDc3N2I5ZjBkMzllMA==
4
+ ZjE3ZmE0ZGY1MGU1MDM0MjQ5Y2M2NTdjYjQ4ZTE3ODkzODNhN2IzMQ==
5
5
  data.tar.gz: !binary |-
6
- Y2Y1M2M2N2Y1YTVkMDVkZTljYjg3NTExMDgwMDExYjkxYzdiNGNlYQ==
6
+ ZGQwMzJlOTQwYWU3ZjQ0Nzk0MjA1MWMzZGYzZGMxOTVlMjNlNmU1Zg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2RhZGUxYWJmZDUyYzUwMTM4ZjU3NzRiMGMyYmUwMTA1ZTc2ZDRiZWIxYTIw
10
- MTM1MjNiYWZkNzAyY2NkMDc1MWI0NThjOTIzNmZhN2VlMzBmOWU4OTFiYTEx
11
- MzYwMjdkZjc3YzU1YjJkMzJjZGE0YmVkNGVlMzBkOTliMzY0NzY=
9
+ YmQ4NjI1ODIzYzYwYmI5ZjdlNjNkNTQ3NDE5MDRkMzBmOWVlMDM3ZGRhMzJi
10
+ YjMzYTI4ZDQxOWMyMDg3NWZmYTA5OTBkZjlmNWQ5M2JlNDZkN2IwMDBhMzk5
11
+ MjkwOGU1YzE4MzZjMzUyMDE1MDAwZDhiYjY0MTk3ZGFmOWQzOTE=
12
12
  data.tar.gz: !binary |-
13
- MTgzM2EzNDhhNDg2YjI0MGU5YTY1YzVlMjk3OTdlNTJmMDdlMmRkNWRlNTU2
14
- MjhiNWQ1Yjk4ZDM4YWM5NTYzOTllZTIzZmMwYTZiNDI1NGFkNjkzZTUyMmJh
15
- ZmNkYWY2ZDhkYTYwOGE2MDU5NTY0YTllZWRiYmU1MjU0YTZmZWI=
13
+ MTNiYmY4ZGRhNGVjNzA3MDkzNGE3OTBiZTJmZDhjOWRmN2FlYzM1N2RkZGZl
14
+ ZmI1MjBiNGQ0ZWExYmVlODllZTg2NzIyZGE2YjU3MDlhOTIwNGQwZTg2NGE3
15
+ ZDJlN2JkZGNmNDk5OTI1NjhkYTBiM2U3NzhjM2YxZDE0YTJlZjc=
@@ -17,7 +17,6 @@ module ZipkinTracer
17
17
  def initialize(app, service_name = nil)
18
18
  @app = app
19
19
  @service_name = service_name
20
- @tracer = Trace.tracer
21
20
  end
22
21
 
23
22
  def call(env)
@@ -43,7 +42,7 @@ module ZipkinTracer
43
42
  url = env[:url].respond_to?(:host) ? env[:url] : URI.parse(env[:url].to_s)
44
43
  local_endpoint = Trace.default_endpoint # The rack middleware set this up for us.
45
44
  remote_endpoint = Trace::Endpoint.remote_endpoint(url, @service_name, local_endpoint.ip_format) # The endpoint we are calling.
46
- @tracer.with_new_span(trace_id, env[:method].to_s.downcase) do |span|
45
+ Trace.tracer.with_new_span(trace_id, env[:method].to_s.downcase) do |span|
47
46
  # annotate with method (GET/POST/etc.) and uri path
48
47
  span.record_tag(Trace::BinaryAnnotation::URI, url.path, Trace::BinaryAnnotation::Type::STRING, local_endpoint)
49
48
  span.record_tag(Trace::BinaryAnnotation::SERVER_ADDRESS, SERVER_ADDRESS_SPECIAL_VALUE, Trace::BinaryAnnotation::Type::BOOL, remote_endpoint)
@@ -12,5 +12,5 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
  module ZipkinTracer
15
- VERSION = "0.14.0"
15
+ VERSION = "0.14.1"
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipkin-tracer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franklin Hu
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-02-09 00:00:00.000000000 Z
16
+ date: 2016-02-12 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: faraday