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

Padrino configuration #79

Closed
kakubei opened this issue Jan 7, 2014 · 3 comments
Closed

Padrino configuration #79

kakubei opened this issue Jan 7, 2014 · 3 comments
Labels

Comments

@kakubei
Copy link

kakubei commented Jan 7, 2014

Could someone point me to a Padrino configuration example? I am trying to use Rollbar on Heroku (and locally for testing) with a Padrino app. There is no Rails generate for Padrino so I created the config/initializers/rollbar.rb file manually and put my access token into it) but I get an error when trying to run the rake test (rake doesn't know how to execute the task which seems to indicate that some configuration is missing) and I don't see any data being collected from local errors in my app.

Thanks.

@brianr
Copy link
Member

brianr commented Jan 10, 2014

Apologies for the slow reply - I haven't used Padrino, but here's a Sinatra example that may point you in the right direction: https://github.com/rollbar/sinatra-rollbar-example/blob/master/example.rb

For running on Heroku, replace the config.access_token line with:

config.access_token = ENV['ROLLBAR_ACCESS_TOKEN']

Let me know if this is close enough; if not, I'll be happy to take a look at Padrino.

@ghost
Copy link

ghost commented Feb 4, 2014

This example is no longer valid. Since ~ v0.12.4 the "request_data[:route]" value is now assumed to be a hash (https://github.com/rollbar/rollbar-gem/blob/master/lib/rollbar.rb#L91), so merging the path causes an issue with Rollbar itself.

@brianr
Copy link
Member

brianr commented Oct 28, 2014

Hi @kakubei and @marinerJB - super old thread, but in case this is relevant to you:

  • There's a proper Sinatra middleware here
  • Here is a test showing how to use it

Going to close this but please re-open if you still have open questions :)

@brianr brianr closed this as completed Oct 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants