lib/opentelemetry/instrumentation/rack.rb in opentelemetry-instrumentation-rack-0.10.0 vs lib/opentelemetry/instrumentation/rack.rb in opentelemetry-instrumentation-rack-0.10.1

- old
+ new

@@ -20,10 +20,10 @@ # # @param [optional Context] context The context to lookup the current # {Span} from. Defaults to Context.current def current_span(context = nil) context ||= Context.current - context.value(CURRENT_SPAN_KEY) || Span::INVALID + context.value(CURRENT_SPAN_KEY) || OpenTelemetry::Trace::Span::INVALID end # Returns a context containing the span, derived from the optional parent # context, or the current context if one was not provided. #