Skip to content

time stat on failing block#16

Merged
yannmh merged 2 commits intoDataDog:masterfrom
gleseur:sending_time_on_failing_block
May 19, 2015
Merged

time stat on failing block#16
yannmh merged 2 commits intoDataDog:masterfrom
gleseur:sending_time_on_failing_block

Conversation

@gleseur
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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 pushed 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.

2 participants