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

time stat on failing block #16

Merged
merged 2 commits into from
May 19, 2015

Conversation

gleseur
Copy link
Contributor

@gleseur gleseur commented Apr 29, 2015

Hi,

The goal of this PR is to still send the time stat when the monitored block is failing.
Done here:

  • Still sending the stat when block is failing
  • Reraising the error so that it does not mess up with the rest
  • Adding test cases for this
  • Improved a bit the tests by actually asserting the message sent. Froze the time to do so to make sure there is no random test failure because of time assertions

…raising the error so that it does not change anything in the rest of the processing
@gleseur
Copy link
Contributor Author

gleseur commented Apr 30, 2015

Looks like I need to fix the tests with jruby surprisingly not measuring the same time difference

@gleseur gleseur force-pushed the sending_time_on_failing_block branch from f727993 to fd2e8ad Compare April 30, 2015 11:02
@gleseur
Copy link
Contributor Author

gleseur commented Apr 30, 2015

ok now but the i18n gem issue

@yannmh yannmh self-assigned this May 19, 2015
@yannmh
Copy link
Member

yannmh commented May 19, 2015

Great enhancement ! Thanks a lot for your contribution @gleseur.

I am merging your changes so we can release a new gem. About the Travis CI build failing, we are dropping Ruby1.8 support so it should not be an issue.

yannmh added a commit that referenced this pull request May 19, 2015
@yannmh yannmh merged commit 75f3104 into DataDog:master May 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants