diff --git a/lib/zipkin-tracer/rack/zipkin-tracer.rb b/lib/zipkin-tracer/rack/zipkin-tracer.rb index 4686cb6..f153775 100644 --- a/lib/zipkin-tracer/rack/zipkin-tracer.rb +++ b/lib/zipkin-tracer/rack/zipkin-tracer.rb @@ -53,7 +53,7 @@ def annotate_plugin(env, status, response_headers, response_body) def trace!(span, zipkin_env, &block) # if called by a service, the caller already added the information - trace_request_information(span, zipkin_env.env) unless zipkin_env.called_with_zipkin_headers? + trace_request_information(span, zipkin_env.env) span.record(Trace::Annotation::SERVER_RECV) span.record('whitelisted') if zipkin_env.force_sample? status, headers, body = yield