lib/opentelemetry/common/utilities.rb in opentelemetry-common-0.18.0 vs lib/opentelemetry/common/utilities.rb in opentelemetry-common-0.19.0

- old
+ new

@@ -71,10 +71,10 @@ def truncate(string, size) string.size > size ? "#{string[0...size - 3]}..." : string end def untraced - OpenTelemetry::Trace.with_span(OpenTelemetry::Trace::Span.new) { yield } + OpenTelemetry::Trace.with_span(OpenTelemetry::Trace.non_recording_span(OpenTelemetry::Trace::SpanContext.new)) { yield } end # Returns a URL string with userinfo removed. # # @param [String] url The URL string to cleanse.