lib/opentelemetry/common/utilities.rb in opentelemetry-common-0.12.0 vs lib/opentelemetry/common/utilities.rb in opentelemetry-common-0.13.0

- old
+ new

@@ -43,9 +43,13 @@ rescue StandardError => e OpenTelemetry.logger.debug("Error encoding string in UTF-8: #{e}") placeholder end + + def untraced + OpenTelemetry::Trace.with_span(OpenTelemetry::Trace::Span.new) { yield } + end end end end require_relative './http/client_context'