lib/aspecto/opentelemetry/sampler/message_process_sampler.rb in aspecto-opentelemetry-0.1.7 vs lib/aspecto/opentelemetry/sampler/message_process_sampler.rb in aspecto-opentelemetry-0.1.8

- old
+ new

@@ -27,10 +27,10 @@ end private def should_sample_processing(parent_context, links, name, attributes) - return if links.length.zero? + return if !links || links.length.zero? decision = link_decision(links[0]) # sidekiq receive side is a single "process" span which is the entry for the trace is_root = ::OpenTelemetry::Trace.current_span(parent_context) == ::OpenTelemetry::Trace::Span::INVALID