lib/.rbnext/3.0/anyway/tracing.rb in anyway_config-2.5.3 vs lib/.rbnext/3.0/anyway/tracing.rb in anyway_config-2.5.4

- old
+ new

@@ -177,10 +177,10 @@ def trace!(type, *path, **opts) return yield unless Tracing.tracing? val = yield if val.is_a?(Hash) Tracing.current_trace.merge_values(val, type: type, **opts) - else + elsif !path.empty? Tracing.current_trace.record_value(val, *path, type: type, **opts) end val end end