Skip to content

Commit a7c5536

Browse files
committed
fix: use enqueued_at for enqueued_at
broken with #1444
1 parent 4eca039 commit a7c5536

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def call(_worker, msg, _queue)
3232

3333
extracted_context = OpenTelemetry.propagation.extract(msg)
3434
created_at = time_from_timestamp(msg['created_at'])
35-
enqueued_at = time_from_timestamp(msg['created_at'])
35+
enqueued_at = time_from_timestamp(msg['enqueued_at'])
3636
scheduled_at = time_from_timestamp(msg['at']) unless msg['at'].nil?
3737
OpenTelemetry::Context.with_current(extracted_context) do
3838
if instrumentation_config[:propagation_style] == :child

0 commit comments

Comments
 (0)