lib/opentracing/span.rb in opentracing-0.4.0 vs lib/opentracing/span.rb in opentracing-0.4.1
- old
+ new
@@ -6,12 +6,11 @@
NOOP_INSTANCE = Span.new.freeze
# Set the name of the operation
#
# @param [String] name
- def operation_name=(name)
- end
+ def operation_name=(name); end
# Span Context
#
# @return [SpanContext]
def context
@@ -47,10 +46,10 @@
# Add a log entry to this span
# @param event [String] event name for the log
# @param timestamp [Time] time of the log
# @param fields [Hash] Additional information to log
def log(event: nil, timestamp: Time.now, **fields)
- warn "Span#log is deprecated. Please use Span#log_kv instead."
+ warn 'Span#log is deprecated. Please use Span#log_kv instead.'
nil
end
# Add a log entry to this span
# @param timestamp [Time] time of the log