lib/opentracing/span.rb in opentracing-0.3.0 vs lib/opentracing/span.rb in opentracing-0.3.1

- old
+ new

@@ -1,29 +1,25 @@ module OpenTracing - # Span represents an OpenTracer Span + # Span represents an OpenTracing Span # # See http://www.opentracing.io for more information. class Span NOOP_INSTANCE = Span.new.freeze # Set the name of the operation + # + # @param [String] name def operation_name=(name) end # Span Context + # + # @return [SpanContext] def context SpanContext::NOOP_INSTANCE end - # Creates a new {Span} - # - # @param tracer [Tracer] the tracer that created this span - # @param context [SpanContext] the context of the span - # @return [Span] a new Span - def initialize(tracer:, context:) - end - # Set a tag value on this span # @param key [String] the key of the tag # @param value [String, Numeric, Boolean] the value of the tag. If it's not # a String, Numeric, or Boolean it will be encoded with to_s def set_tag(key, value) @@ -37,10 +33,10 @@ self end # Get a baggage item # @param key [String] the key of the baggage item - # @return Value of the baggage item + # @return [String] value of the baggage item def get_baggage_item(key) nil end # Add a log entry to this span