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

Wrap polling within instrumentation #312

Merged
merged 1 commit into from
Aug 29, 2024
Merged

Conversation

gjtorikian
Copy link
Contributor

Should close #311. I wasn't sure how interesting the tests should be, but I did my best to show something happening.

end

assert_equal 5, events.size
assert_event events.last, "polling"
Copy link
Member

Choose a reason for hiding this comment

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

Nice! I think you can remove a few variables here, like process, jobs, worker, to make this test simpler, since we don't need them to check anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok! I removed as many as I could to get a minimum running example. I think process still needs to be there!

Copy link
Member

@rosa rosa left a comment

Choose a reason for hiding this comment

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

Nice! Thank you so much! 🙏

@rosa rosa merged commit e580fe7 into rails:main Aug 29, 2024
4 checks passed
@gjtorikian gjtorikian deleted the instrument-polling branch August 29, 2024 18:50
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.

Support for instrumenting polling?
2 participants