8000 feat(sidekiq): scheduled jobs improvements - `scheduled` operation and add links by smoke · Pull Request #1717 · open-telemetry/opentelemetry-ruby-contrib · GitHub
[go: up one dir, main page]

Skip to content

Conversation

smoke
Copy link
Contributor
@smoke smoke commented Oct 6, 2025

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 smoke marked this pull request as draft October 6, 2025 13:41
@smoke smoke force-pushed the feat/sidekiq-links-to-scheduled-jobs branch 4 times, most recently from 03a5fdb to 4eca039 Compare October 6, 2025 13:57
@smoke smoke closed this Oct 6, 2025
@smoke smoke reopened this Oct 8, 2025
@smoke smoke marked this pull request as ready for review October 8, 2025 13:51
smoke added 3 commits October 8, 2025 16:52
…d add links

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 smoke force-pushed the feat/sidekiq-links-to-scheduled-jobs branch from 44cda99 to 6a3983f Compare October 8, 2025 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0