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 +8 -8
- data/lib/zipkin-tracer/faraday/zipkin-tracer.rb +1 -2
- data/lib/zipkin-tracer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjE3ZmE0ZGY1MGU1MDM0MjQ5Y2M2NTdjYjQ4ZTE3ODkzODNhN2IzMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGQwMzJlOTQwYWU3ZjQ0Nzk0MjA1MWMzZGYzZGMxOTVlMjNlNmU1Zg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YmQ4NjI1ODIzYzYwYmI5ZjdlNjNkNTQ3NDE5MDRkMzBmOWVlMDM3ZGRhMzJi
|
10
|
+
YjMzYTI4ZDQxOWMyMDg3NWZmYTA5OTBkZjlmNWQ5M2JlNDZkN2IwMDBhMzk5
|
11
|
+
MjkwOGU1YzE4MzZjMzUyMDE1MDAwZDhiYjY0MTk3ZGFmOWQzOTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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
|
-
|
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)
|
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.
|
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-
|
16
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: faraday
|