Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails notifications: subscribe to ActiveJob topics #1515

Closed
fallwith opened this issue Oct 1, 2022 · 2 comments · Fixed by #1761
Closed

Rails notifications: subscribe to ActiveJob topics #1515

fallwith opened this issue Oct 1, 2022 · 2 comments · Fixed by #1761
Assignees
Labels
rails Issues related to the Ruby on Rails framework

Comments

@fallwith
Copy link
Contributor

fallwith commented Oct 1, 2022

Rails will publish content to the following 4 ActiveJob topics:

  • enqueue_at.active_job
  • enqueue.active_job
  • enqueue_retry.active_job
  • perform.active_job

We should subscribe to these in a similar manner used for *.action_controller and *.action_view topics.

NOTE: we currently instrument ActiveJob without taking advantage of subscriptions. Make sure to not collide / overlap with that existing instrumentation.

@workato-integration
Copy link

@fallwith fallwith added this to the Rails Notifications milestone Oct 1, 2022
@kaylareopelle kaylareopelle added rails Issues related to the Ruby on Rails framework and removed core technology labels Oct 28, 2022
@fallwith fallwith changed the title Rails notifications: subscribe to ActiveJob topics Rails notifications: subscribe to additional ActiveJob topics Nov 8, 2022
@fallwith fallwith changed the title Rails notifications: subscribe to additional ActiveJob topics Rails notifications: subscribe to ActiveJob topics Nov 8, 2022
@fallwith fallwith self-assigned this Jan 20, 2023
@fallwith
Copy link
Contributor Author

The latest Active Support instrumentation guide references these additional 3 events:

  • perform_start.active_job
  • retry_stopped.active_job
  • discard.active_job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rails Issues related to the Ruby on Rails framework
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants