lib/opentelemetry/instrumentation/que/patches/poller.rb in opentelemetry-instrumentation-que-0.8.1 vs lib/opentelemetry/instrumentation/que/patches/poller.rb in opentelemetry-instrumentation-que-0.8.2

- old
+ new

@@ -15,12 +15,12 @@ # in Poller#poll to decide if the actual poll should be executed or # not. Without this we would generate a lot of unnecessary spans. return unless should_poll? if Que::Instrumentation.instance.config[:trace_poller] - Que::Instrumentation.instance.tracer.in_span('Que::Poller#poll') { super(*args, **kwargs) } + Que::Instrumentation.instance.tracer.in_span('Que::Poller#poll') { super } else - OpenTelemetry::Common::Utilities.untraced { super(*args, **kwargs) } + OpenTelemetry::Common::Utilities.untraced { super } end end end end end