Praxis Plugin for Errbit integration

13 views
Skip to first unread message

Justin Gaylor

unread,
Apr 2, 2015, 8:25:16 PM4/2/15
to praxis-de...@googlegroups.com
Hi all,

I would be great to have a plugin for Errbit integration for Praxis apps. To get discussion started, here are some points the plugin author (I'm fine doing it) should probably cover and/or allow configuration for:
  • Sets an ExceptionHandler to Praxis::Application.instance.error_handler
    • This is how 500s are caught and notified to Errbit.
    • I'm thinking this should probably wrap the currently set error_handler somehow, in case another plugin or the app specifies a custom one? Any ideas here?
  • Use airbrake gem or the lighter-weight hydraulic_brake gem?
  • Configuration params for the errbit integration gem:
    • api_key
    • host
    • port
    • secure
    • environment_name
    • development_environments
    • project_root
    • params_filters
    • etc...
  • Ideally, apps should also be able to specify how to set the values in the hash notified to the integration gem (airbrake or hydraulic_brake)
    • Maybe a lambda can be set for each value and the plugin passes the lambda the request? 
    • There should be a default implementation in the case that the app wants to be lazy (recommended).
Let me know thoughts and ideas. Also, if someone else wants to take this and run with it, I'm fine with that. :)

Cheers,
Justin

Reply all
Reply to author
Forward
0 new messages