zipkin-tracer 0.18.3 → 0.18.4
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 768c9ccdbfd3ed92c4468116bd07bcb11c8e3dcf
|
4
|
+
data.tar.gz: 6be68733478b7fca393288c0fbc5aaa37df6ae83
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40f4f5d36eb20a5094004fd4312d7dc27dd90212de38e3d694f38e85853dd69e79d52cad76d5b490d1efa7550c52229773582a8405e263c3f0406388407f788d
|
7
|
+
data.tar.gz: ff89bbcc0d4a03e035be8658aedb6ecc678517d01e9fb408c2a0307fa1bbc3788758e654473fad7cb27862147ed9f0d1724ede6405388a24ad02848ec1aeffd4
|
@@ -47,7 +47,7 @@ module ZipkinTracer
|
|
47
47
|
remote_endpoint = Trace::Endpoint.remote_endpoint(url, @service_name, local_endpoint.ip_format) # The endpoint we are calling.
|
48
48
|
Trace.tracer.with_new_span(trace_id, env[:method].to_s.downcase) do |span|
|
49
49
|
# annotate with method (GET/POST/etc.) and uri path
|
50
|
-
span.record_tag(Trace::BinaryAnnotation::
|
50
|
+
span.record_tag(Trace::BinaryAnnotation::PATH, url.path, Trace::BinaryAnnotation::Type::STRING, local_endpoint)
|
51
51
|
span.record_tag(Trace::BinaryAnnotation::SERVER_ADDRESS, SERVER_ADDRESS_SPECIAL_VALUE, Trace::BinaryAnnotation::Type::BOOL, remote_endpoint)
|
52
52
|
span.record(Trace::Annotation::CLIENT_SEND, local_endpoint)
|
53
53
|
response = @app.call(env).on_complete do |renv|
|
@@ -62,7 +62,7 @@ module ZipkinTracer
|
|
62
62
|
end
|
63
63
|
|
64
64
|
def trace_request_information(span, env)
|
65
|
-
span.record_tag(Trace::BinaryAnnotation::
|
65
|
+
span.record_tag(Trace::BinaryAnnotation::PATH, env['PATH_INFO'])
|
66
66
|
end
|
67
67
|
|
68
68
|
# Environment with Zipkin information in it
|
data/lib/zipkin-tracer/trace.rb
CHANGED