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

Instrument statesman for easy hook into from monitoring tools #489

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

theaxel
Copy link

@theaxel theaxel commented Jan 17, 2023

This PR addresses the issue described in #486 by adding ActiveSupport instrumentation for guards, callbacks and transitions.
Will add some testing if this looks right.

@theaxel theaxel marked this pull request as ready for review January 18, 2023 08:25
@theaxel theaxel changed the title Feature/instrument statesman Instrument statesman for easy hook into from monitoring tools Jan 19, 2023
callback.call(*args)
ActiveSupport::Notifications.instrument "callback.statesman", {
subject: args.first.class.name,
subject_id: args.first.id,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we be sure these will always respond to id?

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.

2 participants