Created
March 17, 2015 21:23
-
-
Save jamescway/0e89e2d6a958e4c18c47 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: /Users/jway/code/faraday-zipkin/lib/faraday-zipkin/trace_headers.rb @ line 53 Faraday::Zipkin::TraceHeaders#call: | |
48: trace_id = ::Trace.id | |
49: ::Trace.push(trace_id.next_id) | |
50: B3_HEADERS.each do |method, header| | |
51: Pry.config.input = STDIN | |
52: Pry.config.output = STDOUT | |
=> 53: binding.pry | |
54: env[:request_headers][header] = ::Trace.id.send(method).to_s | |
55: end | |
56: | |
57: # annotate with method (GET/POST/etc.) and uri path | |
58: ::Trace.set_rpc_name(env[:method].to_s.upcase) | |
[1] pry(#<Faraday::Zipkin::TraceHeaders>)> p Trace.send(:tracer) | |
#<Trace::ZipkinKafkaTracer:0x6a7edb15 @spans={}, @topic="zipkin_kafka", @producer=#<Hermann::Producer:0x2e617652 @brokers=["localhost:9092"], @internal=#<Hermann::Provider::JavaProducer:0x4d34c649 @producer=#<Java::KafkaJavaapiProducer::Producer:0x43c60a38>>, @topic=nil, @children=[]>, @logger=nil> | |
=> #<Trace::ZipkinKafkaTracer:0x6a7edb15 | |
@logger=nil, | |
@producer= | |
#<Hermann::Producer:0x2e617652 | |
@brokers=["localhost:9092"], | |
@children=[], | |
@internal= | |
#<Hermann::Provider::JavaProducer:0x4d34c649 | |
@producer=#<Java::KafkaJavaapiProducer::Producer:0x43c60a38>>, | |
@topic=nil>, | |
@spans={}, | |
@topic="zipkin_kafka"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment