lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb in opentelemetry-instrumentation-sidekiq-0.13.0 vs lib/opentelemetry/instrumentation/sidekiq/middlewares/server/tracer_middleware.rb in opentelemetry-instrumentation-sidekiq-0.14.0
- old
+ new
@@ -11,10 +11,10 @@
module Server
# TracerMiddleware propagates context and instruments Sidekiq requests
# by way of its middleware system
class TracerMiddleware
def call(_worker, msg, _queue)
- parent_context = OpenTelemetry.propagation.text.extract(msg)
+ parent_context = OpenTelemetry.propagation.extract(msg)
tracer.in_span(
span_name(msg),
attributes: {
'messaging.system' => 'sidekiq',
'messaging.sidekiq.job_class' => msg['wrapped']&.to_s || msg['class'],