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 validators with ActiveSupport::Notifications #1635

Merged
merged 1 commit into from
May 19, 2017

Conversation

ktimothy
Copy link
Contributor

It can be useful to measure time spent in validators, especially when you have a lot of them.
This allows to instrument execution of validators by adding endpoint_run_validators.grape event.

@dblock
Copy link
Member

dblock commented May 19, 2017

Perfect, thanks.

@dblock dblock merged commit 5216888 into ruby-grape:master May 19, 2017
@ktimothy ktimothy deleted the instrument_validation branch May 20, 2017 08:19
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