lib/honeycomb/context.rb in honeycomb-beeline-2.8.2 vs lib/honeycomb/context.rb in honeycomb-beeline-2.9.0

- old
+ new

@@ -1,10 +1,11 @@ # frozen_string_literal: true module Honeycomb # Stores the current span and trace context class Context + attr_writer :classic def current_trace return if current_span.nil? current_span.trace end @@ -19,9 +20,13 @@ def span_sent(span) spans.last != span && raise(ArgumentError, "Incorrect span sent") spans.pop + end + + def classic? + @classic end private def spans