lib/jaeger/client/span.rb in jaeger-client-0.1.0 vs lib/jaeger/client/span.rb in jaeger-client-0.2.0

- old
+ new

@@ -7,17 +7,17 @@ # Creates a new {Span} # # @param context [SpanContext] the context of the span # @param context [String] the operation name - # @param client [UdpSender] span emitter + # @param collector [Collector] span collector # # @return [Span] a new Span - def initialize(context, operation_name, client, start_time: Time.now, tags: {}) + def initialize(context, operation_name, collector, start_time: Time.now, tags: {}) @context = context @operation_name = operation_name - @client = client + @collector = collector @start_time = start_time @tags = tags @logs = [] end @@ -57,10 +57,10 @@ # Finish the {Span} # # @param end_time [Time] custom end time, if not now def finish(end_time: Time.now) - @client.send_span(self, end_time) + @collector.send_span(self, end_time) end private def build_binary_annotations