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

Allow config to not inject the exception hooks #169

Merged
merged 3 commits into from
Nov 12, 2014

Conversation

pedro
Copy link
Contributor

@pedro pedro commented Nov 12, 2014

This is helpful when you want to add the Rollbar middleware yourself so you have better control as to where it goes in your stack.

helpful if you want to add the rollbar middleware yourself
@brianr
Copy link
Member

brianr commented Nov 12, 2014

Thanks for the PR!

Looks good to me. @jondeandres can you take a look as well?

@@ -86,6 +88,10 @@ def initialize_copy(orig)
end
end

def do_not_inject_exception_hook
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you have a use case for this method? It's, at least, not used in the PR.

@jondeandres
Copy link
Contributor

@pedro it's nice ;-), just added some comments. this should still be used with caution, cause we don't have standalone middleware for builder, just sinatra apps. we'll add it soon.

Thanks for the PR!

@pedro
Copy link
Contributor Author

pedro commented Nov 12, 2014

Good call on the name change, updated it.

Also took a stab updating the readme to explain this. Documentation is of course more personal/harder to change so feel free to edit the changes yourself, discard them or whatever :}

My use case is explained here:
interagent/pliny#92

Thanks!

brianr added a commit that referenced this pull request Nov 12, 2014
Allow config to not inject the exception hooks
@brianr brianr merged commit bfabb4e into rollbar:master Nov 12, 2014
@brianr
Copy link
Member

brianr commented Nov 12, 2014

Merged - thanks! Will be part of the next release (1.2.8) which should be later this week.

@pedro
Copy link
Contributor Author

pedro commented Nov 12, 2014

sweet! thanks a lot, looking forward to it :}

@brianr
Copy link
Member

brianr commented Nov 13, 2014

Released in 1.2.8

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.

3 participants