opentelemetry-ruby-contrib icon indicating copy to clipboard operation
opentelemetry-ruby-contrib copied to clipboard

feat: sidekiq scheduled jobs improvements - `scheduled` operation and add links

Open smoke opened this issue 3 months ago • 2 comments

When a Job is pushed via perform_in or friends, it goes through the following life-cycle:

  1. First the Job is pushed with at attribute in Redis from Sidekiq::Client - this will now create <...> scheduled span (before it was <...> publish
  2. Then the Job is handled from Sidekiq::Scheduled#enqueue and pushed without at attribute in Redis from Sidekiq::Client - this will keep creating <...> publish span
  3. Then the Job is handled by the Worker as usual

Additionally when using :propagation_style = :link and :trace_poller_enqueue = true a handy set of links are added between the 3 actors above.

smoke avatar Oct 06 '25 13:10 smoke

I think it is worthwhile considering the discussion in https://github.com/open-telemetry/semantic-conventions/issues/1688#issuecomment-3498476928 hence my comment https://github.com/open-telemetry/opentelemetry-ruby-contrib/pull/1717#discussion_r2483134544

thompson-tomo avatar Nov 07 '25 00:11 thompson-tomo

👋 This pull request has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the keep label to hold stale off permanently, or do nothing. If you do nothing this pull request will be closed eventually by the stale bot

github-actions[bot] avatar Dec 09 '25 02:12 github-actions[bot]