lib/test/span.rb in test-tracer-1.1.3 vs lib/test/span.rb in test-tracer-1.1.4
- old
+ new
@@ -84,9 +84,19 @@
@in_progress = false
@tracer.finished_spans << self
self
end
+ def to_s
+ "Span(operation_name=#{operation_name}, " +
+ "in_progress=#{in_progress?}, " +
+ "tags=#{tags}, " +
+ "logs=#{logs}, " +
+ "start_time=#{start_time}, " +
+ "end_time=#{end_time}, " +
+ "context=#{context})"
+ end
+
private
def ensure_in_progress!
unless in_progress?
raise SpanAlreadyFinished.new("No modification operations allowed. The span is already finished.")