Skip to content

Commit ef15edb

Browse files
committed
fix
1 parent 6c84c6f commit ef15edb

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/sidekiq/lib/opentelemetry/instrumentation/sidekiq/middlewares/client

1 file changed

+1
-1
lines changed

instrumentation/sidekiq/lib/opentelemetry/instrumentation/sidekiq/middlewares/client/tracer_middleware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def call(_worker_class, job, _queue, _redis_pool)
3434

3535
# In case this is Scheduled job, there is already context injected, so link to that context
3636
# NOTE: :propagation_style = :child is not supported as it is quite tricky when :trace_poller_enqueue = true
37-
extracted_context = OpenTelemetry.propagation.extract(job, OpenTelemetry::Trace.SpanContext.INVALID)
37+
extracted_context = OpenTelemetry.propagation.extract(job, OpenTelemetry::Trace::SpanContext.INVALID)
3838
links = []
3939
span_context = OpenTelemetry::Trace.current_span(extracted_context).context
4040
links << OpenTelemetry::Trace::Link.new(span_context) if instrumentation_config[:propagation_style] == :link && span_context.valid?

0 commit comments

Comments
 (0)