-
Notifications
You must be signed in to change notification settings - Fork 420
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
Instrumentation - Skylight Integration #88
Conversation
A few other notes:
@wagenet Would love for you to take a look at what I have and see if anything you'd suggest. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me at a glance. I didn't actually try it out, but I don't see anything problematic about the approach.
Thanks for looking into it @wagenet. @hmcfletch would love to try this out in our internal systems once it is merged to dev. |
@shishirmk I updated the travis to run the tests separately. Everything is passing now. |
.travis.yml
Outdated
@@ -6,3 +6,4 @@ rvm: | |||
- 2.5.0 | |||
script: | |||
- bundle exec rspec | |||
- bundle exec rspec spec/lib/instrumentation/as_notifications.rb |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If breaking out the spec is the only way to do it, chaining them with &&
might be preferable (https://docs.travis-ci.com/user/customizing-the-build/#Customizing-the-Build-Step) as it would always generate testing output from both sets but still fail properly.
That said, I think your test tear-down could alias the method back to the original and remove the newly added method easily enough and eliminate the need for the second running of rspec.
@GeekOnCoffee Took a crack at it. Hadn't done the |
I took another stab at the Skylight integration. I decided two have an explicit
require
to turn on the instrumentation instead of using environment variables or messing too much with the core files. This seemed a lot cleaner.